Log shutil.rmtree.avoids_symlink_attacks as a warning, not an error
This commit is contained in:
parent
54165bc477
commit
e1416a02aa
@ -106,7 +106,7 @@ class Hierarchy(os.PathLike):
|
|||||||
# We don't want to risk symlink attacks
|
# We don't want to risk symlink attacks
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
if not shutil.rmtree.avoids_symlink_attacks:
|
if not shutil.rmtree.avoids_symlink_attacks:
|
||||||
syslog.error(
|
syslog.warning(
|
||||||
"shutil cannot avoid symlink attacks on this platform. Ignoring."
|
"shutil cannot avoid symlink attacks on this platform. Ignoring."
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
@ -222,7 +222,7 @@ class Repository(Hierarchy):
|
|||||||
# We don't want to risk symlink attacks
|
# We don't want to risk symlink attacks
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
if not shutil.rmtree.avoids_symlink_attacks:
|
if not shutil.rmtree.avoids_symlink_attacks:
|
||||||
syslog.error(
|
syslog.warning(
|
||||||
"shutil cannot avoid symlink attacks on this platform. Ignoring."
|
"shutil cannot avoid symlink attacks on this platform. Ignoring."
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user