mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib mhfile.pl,2.12,2.13

2010-12-31 15:20:45
Update of mhonarc/MHonArc/lib
Modified Files:
	mhfile.pl 
Log Message:
Bug #25225: Apply change as recommended by bug item.  Also removed
last return statement so chmod call will happen.  The other
return statement in the tries-loop is left as-is since we
do not change permissions on directories and files that we
do not explicitly create.


======================================================================
FILE: mhonarc/MHonArc/lib/mhfile.pl
<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/*checkout*/mhonarc/MHonArc/lib/mhfile.pl?rev=2.13>

<http://www.mhonarc.org/cgi-bin/viewcvs.cgi/mhonarc/MHonArc/lib/mhfile.pl.diff?r1=2.12&r2=2.13&diff_format=h>
--- mhfile.pl	31 Dec 2010 20:33:59 -0000	2.12
+++ mhfile.pl	31 Dec 2010 21:20:41 -0000	2.13
@@ -276,5 +276,7 @@
                         qq/and it is not a directory!\n/;
                 }
-            }
+            } else {
+                last;
+            }
         }
         if ($i >= TEMP_MAX_TRIES) {
@@ -286,5 +288,4 @@
             die qq/ERROR: Unable to create "$path": $!\n/;
         }
-        return;
     }
     chmod(($perms &~ umask), $path);

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-COMMITS