summaryrefslogtreecommitdiffstats
path: root/sesman/env.c
diff options
context:
space:
mode:
authorilsimo <ilsimo>2005-10-23 21:47:17 +0000
committerilsimo <ilsimo>2005-10-23 21:47:17 +0000
commite7dbdea767e3478c9255b15c3fe6f928f253c438 (patch)
treed42b4ae832f1cdbacf0ac510b52a1065b4ee0b37 /sesman/env.c
parent4e8b16669ec451ec73d05c51defc3982267da892 (diff)
downloadxrdp-proprietary-e7dbdea767e3478c9255b15c3fe6f928f253c438.tar.gz
xrdp-proprietary-e7dbdea767e3478c9255b15c3fe6f928f253c438.zip
Adding logging functions and adding log options in config files
Diffstat (limited to 'sesman/env.c')
-rw-r--r--sesman/env.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/sesman/env.c b/sesman/env.c
index 9ea5d6bd..1049d6a5 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -23,22 +23,9 @@
*/
-//#include "d3des.h"
-//#include "arch.h"
-//#include "parse.h"
-//#include "os_calls.h"
#include "sesman.h"
-//#include "config.h"
-//#include "tcp.h"
-//#include "sig.h"
-//#include "session.h"
-//#include "env.h"
-//int g_sck;
-//extern int g_pid;
extern unsigned char g_fixedkey[8];
-//struct session_item g_session_items[100]; /* sesman.h */
-//struct sesman_config g_cfg; /* config.h */
/******************************************************************************/
int DEFAULT_CC
@@ -54,6 +41,7 @@ env_check_password_file(char* filename, char* password)
fd = g_file_open(filename);
if (fd == 0)
{
+ log_message(LOG_LEVEL_WARNING, "can't read vnc password file - %s", filename);
return 1;
}
g_file_write(fd, encryptedPasswd, 8);
@@ -104,5 +92,9 @@ env_set_user(char* username, char* passwd_file, int display)
}
}
}
+ else
+ {
+ log_message(LOG_LEVEL_ERROR, "error getting user info for user %s", username);
+ }
return error;
}