summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2018-03-23 15:58:35 +0900
committerKoichiro IWAO <meta@vmeta.jp>2018-03-23 19:16:10 +0900
commita63c4117721cbee28fd179c306092b042ec96333 (patch)
tree3d9d1d1a20d7e255a9b1489f9858fb5ce13544d1
parente40f0dc7e25c5290ad8f609b9aeb7194fa7e06ae (diff)
downloadxrdp-proprietary-a63c4117721cbee28fd179c306092b042ec96333.tar.gz
xrdp-proprietary-a63c4117721cbee28fd179c306092b042ec96333.zip
sesman: rename vnc password file, just a cosmetic change
-rw-r--r--sesman/env.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sesman/env.c b/sesman/env.c
index 142c9bd2..c897f1b3 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -160,7 +160,7 @@ env_set_user(const char *username, char **passwd_file, int display,
if (0 == g_cfg->auth_file_path)
{
/* if no auth_file_path is set, then we go for
- $HOME/.vnc/sesman_USERNAME_passwd:DISPLAY:HOSTNAME */
+ $HOME/.vnc/sesman_passwd-USERNAME@HOSTNAME:DISPLAY */
if (!g_directory_exist(".vnc"))
{
if (g_mkdir(".vnc") < 0)
@@ -171,8 +171,8 @@ env_set_user(const char *username, char **passwd_file, int display,
}
}
- len = g_snprintf(NULL, 0, "%s/.vnc/sesman_%s_passwd:%d:%s",
- pw_dir, username, display, hostname);
+ len = g_snprintf(NULL, 0, "%s/.vnc/sesman_passwd-%s@%s:%d",
+ pw_dir, username, hostname, display);
*passwd_file = (char *) g_malloc(len + 1, 1);
if (*passwd_file != NULL)
@@ -194,8 +194,8 @@ env_set_user(const char *username, char **passwd_file, int display,
"password file %s", *passwd_file);
g_file_delete(*passwd_file);
}
- g_sprintf(*passwd_file, "%s/.vnc/sesman_%s_passwd:%d:%s",
- pw_dir, username, display, hostname);
+ g_sprintf(*passwd_file, "%s/.vnc/sesman_passwd-%s@%s:%d",
+ pw_dir, username, hostname, display);
}
}
else