Skip to content
Snippets Groups Projects
Commit ad9d9100 authored by edgrif's avatar edgrif
Browse files

make sure we handle ~/ in the --conf_dir option.

parent 2df7fdec
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapConfigDir.h
* HISTORY:
* Last edited: Aug 28 15:19 2008 (rds)
* Last edited: Jun 24 14:26 2009 (edgrif)
* Created: Thu Feb 10 10:05:36 2005 (edgrif)
* CVS info: $Id: zmapConfigDir.c,v 1.6 2008-09-04 09:25:34 rds Exp $
* CVS info: $Id: zmapConfigDir.c,v 1.7 2009-06-24 13:29:57 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -74,6 +74,11 @@ gboolean zMapConfigDirCreate(char *config_dir, char *config_file)
config_dir = ZMAP_USER_CONFIG_DIR ;
home_relative = TRUE ;
}
else if (*config_dir == '~' && *(config_dir + 1) == '/')
{
config_dir += 2 ;
home_relative = TRUE ;
}
if (!config_file)
config_file = ZMAP_USER_CONFIG_FILE ;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment