]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/directory.c
replaced all #include <sys/syslog.h> with #include <syslog.h>
[netatalk.git] / etc / afpd / directory.c
index 777d82390bbfddd4ef64e2cf12c7b7562f212930..5e5039e065fed4bf03e2552d8e12a0fe54d974f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: directory.c,v 1.21 2001-12-10 20:16:54 srittau Exp $
+ * $Id: directory.c,v 1.24 2002-01-03 17:49:38 sibaz Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -12,7 +12,7 @@
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
-#include <sys/syslog.h>
+#include <syslog.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <errno.h>
@@ -456,9 +456,11 @@ static int deletedir(char *dir)
                     continue; /* somebody went and deleted it behind our backs. */
                 case EROFS:
                     err = AFPERR_VLOCK;
+                                       break;
                 case EPERM:
                 case EACCES :
                     err = AFPERR_ACCESS;
+                                       break;
                 default :
                     err = AFPERR_PARAM;
                 }
@@ -1423,8 +1425,7 @@ int               ibuflen, *rbuflen;
     }
 
     /* check for illegal bits */
-    if ((vol->v_flags & AFPVOL_MSWINDOWS) &&
-            strpbrk(path, MSWINDOWS_BADCHARS))
+    if (!wincheck(vol, path))
         return AFPERR_PARAM;
 
     upath = mtoupath(vol, path);