... | ... |
@@ -965,13 +965,13 @@ def cmd_sync_remote2local(args): |
965 | 965 |
continue |
966 | 966 |
|
967 | 967 |
try: |
968 |
- # set permissions on destination file |
|
969 |
- if not is_empty_directory: # a normal file |
|
970 |
- mode = 0777 - original_umask; |
|
971 |
- else: # an empty directory, make them readable/executable |
|
972 |
- mode = 0775 |
|
973 |
- debug(u"mode=%s" % oct(mode)) |
|
974 |
- os.chmod(dst_file, mode); |
|
968 |
+ # set permissions on destination file |
|
969 |
+ if not is_empty_directory: # a normal file |
|
970 |
+ mode = 0777 - original_umask; |
|
971 |
+ else: # an empty directory, make them readable/executable |
|
972 |
+ mode = 0775 |
|
973 |
+ debug(u"mode=%s" % oct(mode)) |
|
974 |
+ os.chmod(dst_file, mode); |
|
975 | 975 |
except: |
976 | 976 |
raise |
977 | 977 |
|