]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/fork.c
MFH sleep and unix priv functionalities.
[netatalk.git] / etc / afpd / fork.c
index ddc01fb31c2a7bd5ffea9391901d0e872b9d3573..7a60db017fa5b8f7f0210e718ac1102b7126796b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: fork.c,v 1.51 2003-03-15 01:34:35 didg Exp $
+ * $Id: fork.c,v 1.51.2.1 2003-07-21 05:50:54 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -329,8 +329,15 @@ int                ibuflen, *rbuflen;
     }
     /* FIXME should we check it first ? */
     upath = s_path->u_name;
-    if (check_access(upath, access ) < 0) {
-        return AFPERR_ACCESS;
+    if (!vol_unix_priv(vol)) {
+        if (check_access(upath, access ) < 0) {
+            return AFPERR_ACCESS;
+        }
+    }
+    else {
+        if (file_access(s_path, access ) < 0) {
+            return AFPERR_ACCESS;
+        }
     }
 
     st   = &s_path->st;