Use USERPROFILE instead of HOME for homedir determination on win32 builds.
git-svn-id: file:///home/mbr/svn/fwknop/trunk@243 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
@@ -384,7 +384,13 @@ process_rc(fko_cli_options_t *options)
|
||||
char var[MAX_LINE_LEN] = {0};
|
||||
char val[MAX_LINE_LEN] = {0};
|
||||
|
||||
char *ndx, *emark, *homedir = getenv("HOME");
|
||||
char *ndx, *emark, *homedir;
|
||||
|
||||
#ifdef WIN32
|
||||
homedir = getenv("USERPROFILE");
|
||||
#else
|
||||
homedir = getenv("HOME");
|
||||
#endif
|
||||
|
||||
if(homedir == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user