[GRASS-SVN] r59336 - in grass/trunk: db/db.login lib/db/dbmi_base
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 25 09:36:48 PDT 2014
Author: martinl
Date: 2014-03-25 09:36:47 -0700 (Tue, 25 Mar 2014)
New Revision: 59336
Modified:
grass/trunk/db/db.login/main.c
grass/trunk/lib/db/dbmi_base/login.c
Log:
dbmilib+db.login: use HOST_DIRSEP
Modified: grass/trunk/db/db.login/main.c
===================================================================
--- grass/trunk/db/db.login/main.c 2014-03-25 16:24:14 UTC (rev 59335)
+++ grass/trunk/db/db.login/main.c 2014-03-25 16:36:47 UTC (rev 59336)
@@ -74,7 +74,7 @@
}
if (password->answer)
- G_important_message(_("The password was stored in file (%s/dblogin)"), G_config_path());
+ G_important_message(_("The password was stored in file (%s%cdblogin)"), G_config_path(), HOST_DIRSEP);
exit(EXIT_SUCCESS);
}
Modified: grass/trunk/lib/db/dbmi_base/login.c
===================================================================
--- grass/trunk/lib/db/dbmi_base/login.c 2014-03-25 16:24:14 UTC (rev 59335)
+++ grass/trunk/lib/db/dbmi_base/login.c 2014-03-25 16:36:47 UTC (rev 59336)
@@ -43,7 +43,7 @@
if (!file) {
file = (char *)db_malloc(GPATH_MAX);
- sprintf(file, "%s/dblogin", G_config_path());
+ sprintf(file, "%s%cdblogin", G_config_path(), HOST_DIRSEP);
}
return file;
}
More information about the grass-commit
mailing list