]> arthur.barton.de Git - netatalk.git/commitdiff
ADMIN_GRP support added (superuser file permissions)
authoritlm019 <itlm019>
Fri, 4 Aug 2000 20:18:58 +0000 (20:18 +0000)
committeritlm019 <itlm019>
Fri, 4 Aug 2000 20:18:58 +0000 (20:18 +0000)
etc/afpd/unix.c

index a1ea079902504f0d59458e836c73c9d9dc65bce6..83464411649c04c9d9933c3c94c80d5f64ac5506 100644 (file)
@@ -91,6 +91,12 @@ void utommode( stat, ma )
 
     ma->ma_owner = utombits( mode );
 
+#ifdef ADMIN_GRP
+    if ( uuid == 0 )
+        ma->ma_user = AR_UWRITE | AR_UREAD | AR_USEARCH | AR_UOWN;
+    else
+#endif
+
     if ( uuid == stat->st_uid ) {
        ma->ma_user = ma->ma_owner | AR_UOWN;
     } else if ( gmem( stat->st_gid )) {