From a63c4117721cbee28fd179c306092b042ec96333 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Fri, 23 Mar 2018 15:58:35 +0900 Subject: [PATCH] sesman: rename vnc password file, just a cosmetic change --- sesman/env.c | 10 +++++----- 1 file 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