]> arthur.barton.de Git - netatalk.git/commitdiff
don't try to create special folders and .volinfo on read-only volumes.
authorbfernhomberg <bfernhomberg>
Sun, 11 Jul 2004 02:17:51 +0000 (02:17 +0000)
committerbfernhomberg <bfernhomberg>
Sun, 11 Jul 2004 02:17:51 +0000 (02:17 +0000)
etc/afpd/volume.c

index 57d6d1483cd7dae54569a2b15f67bb5c554471fe..958b82fcf183fe26205a43372ab787b60ea260fb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.51.2.7.2.31 2004-06-09 01:15:21 bfernhomberg Exp $
+ * $Id: volume.c,v 1.51.2.7.2.32 2004-07-11 02:17:51 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1746,8 +1746,10 @@ int              ibuflen, *rbuflen;
     ret  = stat_vol(bitmap, volume, rbuf, rbuflen);
     if (ret == AFP_OK) {
 
-        handle_special_folders( volume );
-        savevoloptions( volume);
+        if (!(volume->v_flags & AFPVOL_RO)) {
+            handle_special_folders( volume );
+            savevoloptions( volume);
+        }
 
         /*
          * If you mount a volume twice, the second time the trash appears on