Browse code

Use stat() to get the stat record for the target of a symlink, not of the link itself (which lstat() does). A check for the case where a file is symlink and the follow-symlink option is not set has already been made a few lines above, so this should be safe I think.

o172 authored on 2014/02/02 02:52:48
Showing 1 changed files
... ...
@@ -238,7 +238,7 @@ def fetch_local_list(args, is_src = False, recursive = None):
238 238
                 if relative_file.startswith('./'):
239 239
                     relative_file = relative_file[2:]
240 240
                 try:
241
-                    sr = os.stat_result(os.lstat(full_name))
241
+                    sr = os.stat_result(os.stat(full_name))
242 242
                 except OSError, e:
243 243
                     if e.errno == errno.ENOENT:
244 244
                         # file was removed async to us getting the list