Merge pull request #4782 from amyspark/fix-quarantine-broken-symlinks

quarantine: do not automatically follow symlinks
This commit is contained in:
Vítor Galvão 2018-09-01 10:41:47 +01:00 committed by GitHub
commit ad66d54143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ module Hbc
quarantine_status = status(from, command: command)
quarantiner = command.run("/usr/bin/xattr",
args: ["-w", "-r", QUARANTINE_ATTRIBUTE, quarantine_status, to],
args: ["-w", "-rs", QUARANTINE_ATTRIBUTE, quarantine_status, to],
print_stderr: false)
return if quarantiner.success?