]> arthur.barton.de Git - netatalk.git/commitdiff
revert previous bogus change...
authordidg <didg>
Thu, 23 Oct 2003 04:29:16 +0000 (04:29 +0000)
committerdidg <didg>
Thu, 23 Oct 2003 04:29:16 +0000 (04:29 +0000)
etc/afpd/volume.c

index de0a1892e90ceca60075b05d71d9e25a1c1b0215..1d42b71f662da02093e4cfe5c9bec131f2db53a8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.51.2.7.2.7 2003-10-17 00:01:11 didg Exp $
+ * $Id: volume.c,v 1.51.2.7.2.8 2003-10-23 04:29:16 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1420,18 +1420,16 @@ int     ibuflen, *rbuflen;
 
     data = rbuf + 5;
     for ( vcnt = 0, volume = Volumes; volume; volume = volume->v_next ) {
-        if ( stat( volume->v_path, &st ) < 0 ) {
-            if ((volume->v_flags & AFPVOL_NOSTAT)) {
-                continue;
+        if (!(volume->v_flags & AFPVOL_NOSTAT)) {
+            if ( stat( volume->v_path, &st ) < 0 ) {
+                LOG(log_info, logtype_afpd, "afp_getsrvrparms: stat %s: %s",
+                        volume->v_path, strerror(errno) );
+                continue;              /* can't access directory */
+            }
+            if (!S_ISDIR(st.st_mode)) {
+                continue;              /* not a dir */
             }
-            LOG(log_info, logtype_afpd, "afp_getsrvrparms: stat %s: %s",
-                    volume->v_path, strerror(errno) );
-            continue;          /* can't access directory */
-        }
-        if (!S_ISDIR(st.st_mode)) {
-            continue;          /* not a dir */
         }
-
         if (volume->v_hide) {
             continue;          /* config file changed but the volume was mounted */
         }