[mirrorbrain-commits] r8357 - /trunk/tools/scanner.pl

From: <poeml_at_mirrorbrain.org>
Date: Sun, 02 Feb 2014 11:56:59 -0000
Author: poeml
Date: Sun Feb  2 12:56:58 2014
New Revision: 8357

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8357&view=rev
Log:
scanner:
- when in verbose mode, don't wrongly log symlinks as directories (issue #141) 
  Thanks Dago!

Modified:
    trunk/tools/scanner.pl

Modified: trunk/tools/scanner.pl
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/scanner.pl?rev=8357&r1=8356&r2=8357&view=diff
==============================================================================
--- trunk/tools/scanner.pl	(original)
+++ trunk/tools/scanner.pl	Sun Feb  2 12:56:58 2014
_at_@ -1055,8 +1055,11 @@
       printf "%s: rsync skip: %03o %12.0f %-25s %-50s\n", $priv->{identifier}, ($mode & 0777), $len, scalar(localtime $mtime), $name if $verbose > 1;
     }
   }
-  elsif($verbose) {
+  elsif($mode == 0755) {
     printf "%s: rsync dir: %03o %12.0f %-25s %-50s\n", $priv->{identifier}, ($mode & 0777), $len, scalar(localtime $mtime), $name if $verbose > 1;
+  }
+  elsif($mode == 020777) {
+    printf "%s: rsync link: %03o %12.0f %-25s %-50s\n", $priv->{identifier}, ($mode & 0777), $len, scalar(localtime $mtime), $name if $verbose > 2;
   }
   return $r;
 }




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Sun Feb 02 2014 - 11:57:03 GMT

This archive was generated by hypermail 2.3.0 : Sun Feb 02 2014 - 12:17:05 GMT