From 930160ea505fdbc4f4a1faf3399cdf2022150ad9 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Fri, 31 Aug 2007 04:09:20 +0000 Subject: [PATCH] patch from 'Hug Me' --- sesman/env.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sesman/env.c b/sesman/env.c index 53849e3a..e04b56d6 100644 --- a/sesman/env.c +++ b/sesman/env.c @@ -98,11 +98,12 @@ env_set_user(char* username, char* passwd_file, int display) g_setenv("DISPLAY", text, 1); if (passwd_file != 0) { - if (0==g_cfg.auth_file_path) + if (0 == g_cfg.auth_file_path) { - /* if no auth_file_path is set, then we go for $HOME/.vnc/sesman_passwd */ + /* if no auth_file_path is set, then we go for + $HOME/.vnc/sesman_username_passwd */ g_mkdir(".vnc"); - g_sprintf(passwd_file, "%s/.vnc/sesman_passwd", pw_dir); + g_sprintf(passwd_file, "%s/.vnc/sesman_%s_passwd", pw_dir, username); } else {