]> arthur.barton.de Git - netatalk.git/commitdiff
ad_open on volume with unix priv, miss volume.c in the previous commit.
authordidg <didg>
Wed, 25 May 2005 18:30:50 +0000 (18:30 +0000)
committerdidg <didg>
Wed, 25 May 2005 18:30:50 +0000 (18:30 +0000)
etc/afpd/volume.c

index b5cdd208689162e10c00274872a824a15b38c2df..61238c77acd92fee4ef4c35457c4595917d534f7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.60 2005-05-14 12:54:53 didg Exp $
+ * $Id: volume.c,v 1.61 2005-05-25 18:30:50 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -618,7 +618,9 @@ static int creatvol(AFPObj *obj, struct passwd *pwd,
             volume->v_ad_options |= ADVOL_NODEV;
         if ((volume->v_flags & AFPVOL_CACHE))
             volume->v_ad_options |= ADVOL_CACHE;
-        
+        if ((volume->v_flags & AFPVOL_UNIX_PRIV))
+            volume->v_ad_options |= ADVOL_UNIXPRIV;
+
         if (options[VOLOPT_PASSWORD].c_value)
             volume->v_password = strdup(options[VOLOPT_PASSWORD].c_value);