]> arthur.barton.de Git - netatalk.git/commitdiff
.volinfo file not created on first volume access if user in rolist
authorFrank Lahm <franklahm@googlemail.com>
Tue, 2 Aug 2011 08:29:08 +0000 (10:29 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 2 Aug 2011 08:29:08 +0000 (10:29 +0200)
NEWS
etc/afpd/volume.c

diff --git a/NEWS b/NEWS
index 6215e8b5e3aaa5dc21975c99c1d3a8484df5b101..9df6a08ee09b30901ae9efcef112b653e69b4e0c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,7 @@ Changes in 2.2.1
        established
 * FIX: afpd: fix a crash when searching for a UUID that is not a special
        local UUID and LDAP support is not compiled in
+* FIX: afpd: .volinfo file not created on first volume access if user in rolist
 * FIX: cnid_dbd: increase BerkeleyDB locks and lockobjs
 * FIX: cnid_dbd: implement -d option, deletes CNID db
 * FIX: suse: initscript return better status
index 78be58e04da5a4c6f5d32980a460e9f58c2f1c17..fafdb8bd4ba67f30a653205df2a61c8cca2e1147 100644 (file)
@@ -2317,14 +2317,13 @@ int afp_openvol(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t
     }
 
     ret  = stat_vol(bitmap, volume, rbuf, rbuflen);
+
     if (ret == AFP_OK) {
+        handle_special_folders(volume);
+        savevolinfo(volume,
+                    volume->v_cnidserver ? volume->v_cnidserver : Cnid_srv,
+                    volume->v_cnidport   ? volume->v_cnidport   : Cnid_port);
 
-        if (!(volume->v_flags & AFPVOL_RO)) {
-            handle_special_folders( volume );
-            savevolinfo(volume,
-                        volume->v_cnidserver ? volume->v_cnidserver : Cnid_srv,
-                        volume->v_cnidport   ? volume->v_cnidport   : Cnid_port);
-        }
 
         /*
          * If you mount a volume twice, the second time the trash appears on
@@ -2752,9 +2751,6 @@ static void handle_special_folders (const struct vol * vol)
         }
     }
 
-    if ((vol->v_flags & AFPVOL_RO))
-        return;
-
     for (; p->name != NULL; p++) {
         create_special_folder (vol, p);
     }