Skip to content

Commit

Permalink
#3276 the uid is required to get consistent results
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 25, 2021
1 parent 59a1a0e commit 869a76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def write_displayfd(display_name, fd):
log.error(" %s", str(e) or type(e))


def get_session_dir(sessions_dir, display_name, uid=0):
def get_session_dir(sessions_dir, display_name, uid):
session_dir = osexpand(os.path.join(sessions_dir, display_name.lstrip(":")))
if not os.path.exists(session_dir):
ROOT = POSIX and getuid()==0
Expand All @@ -361,7 +361,7 @@ def get_session_dir(sessions_dir, display_name, uid=0):
return session_dir

def make_session_dir(sessions_dir, display_name, uid=0, gid=0):
session_dir = get_session_dir(sessions_dir, display_name)
session_dir = get_session_dir(sessions_dir, display_name, uid)
if not os.path.exists(session_dir):
try:
os.makedirs(session_dir, 0o750)
Expand Down

0 comments on commit 869a76b

Please sign in to comment.