Removed check whether destination directory is writable from files/unarchive.py. This check will prevent extraction of an archive if the archive does not actually write to the destination directory but only writes to any writable sub-directories of it. The underlying tar command will report errors should it try to write to read-only directories.
This commit is contained in:
parent
f71446045f
commit
47065c2a43
1 changed files with 0 additions and 2 deletions
|
@ -310,8 +310,6 @@ def main():
|
||||||
# is dest OK to receive tar file?
|
# is dest OK to receive tar file?
|
||||||
if not os.path.isdir(dest):
|
if not os.path.isdir(dest):
|
||||||
module.fail_json(msg="Destination '%s' is not a directory" % dest)
|
module.fail_json(msg="Destination '%s' is not a directory" % dest)
|
||||||
if not os.access(dest, os.W_OK):
|
|
||||||
module.fail_json(msg="Destination '%s' not writable" % dest)
|
|
||||||
|
|
||||||
handler = pick_handler(src, dest, module)
|
handler = pick_handler(src, dest, module)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue