Skip to content

Commit

Permalink
#3276 oops, we're checking the runtime dir
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 15, 2021
1 parent 151a2dc commit 1a0adc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ def _do_run_server(script_file, cmdline,
if ROOT and (uid>0 or gid>0):
#we're going to chown the directory if we create it,
#ensure this cannot be abused, only use "safe" paths:
if x=="/run/user/%i" % uid:
if xrd=="/run/user/%i" % uid:
pass #OK!
elif not any(True for x in ("/tmp", "/var/tmp") if xrd.startswith(x)):
xrd = ""
Expand Down

0 comments on commit 1a0adc6

Please sign in to comment.