mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Use --safe-links with rsync
This commit is contained in:
parent
ce48e8f78d
commit
f63ea5cb86
1 changed files with 2 additions and 2 deletions
|
|
@ -123,7 +123,7 @@ def update_awsbucket(repo_section):
|
||||||
def update_serverwebroot(serverwebroot, repo_section):
|
def update_serverwebroot(serverwebroot, repo_section):
|
||||||
# use a checksum comparison for accurate comparisons on different
|
# use a checksum comparison for accurate comparisons on different
|
||||||
# filesystems, for example, FAT has a low resolution timestamp
|
# filesystems, for example, FAT has a low resolution timestamp
|
||||||
rsyncargs = ['rsync', '--archive', '--delete']
|
rsyncargs = ['rsync', '--archive', '--delete', '--safe-links']
|
||||||
if not options.no_checksum:
|
if not options.no_checksum:
|
||||||
rsyncargs.append('--checksum')
|
rsyncargs.append('--checksum')
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
|
|
@ -162,7 +162,7 @@ def update_serverwebroot(serverwebroot, repo_section):
|
||||||
|
|
||||||
|
|
||||||
def _local_sync(fromdir, todir):
|
def _local_sync(fromdir, todir):
|
||||||
rsyncargs = ['rsync', '--recursive', '--links', '--times', '--perms',
|
rsyncargs = ['rsync', '--recursive', '--safe-links', '--times', '--perms',
|
||||||
'--one-file-system', '--delete', '--chmod=Da+rx,Fa-x,a+r,u+w']
|
'--one-file-system', '--delete', '--chmod=Da+rx,Fa-x,a+r,u+w']
|
||||||
# use stricter rsync checking on all files since people using offline mode
|
# use stricter rsync checking on all files since people using offline mode
|
||||||
# are already prioritizing security above ease and speed
|
# are already prioritizing security above ease and speed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue