From: Alexandru C. <cs...@us...> - 2007-12-11 20:29:33
|
Update of /cvsroot/groundstation/gpredict2/src In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15541 Modified Files: sat-log.c Log Message: Use g_mkdir_with_parents() instead of g_mkdir(). Fixes bug 1818144: No log file created at first execution. Index: sat-log.c =================================================================== RCS file: /cvsroot/groundstation/gpredict2/src/sat-log.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** sat-log.c 27 Nov 2007 18:15:57 -0000 1.19 --- sat-log.c 11 Dec 2007 20:29:36 -0000 1.20 *************** *** 97,101 **** if (!g_file_test (dirname, G_FILE_TEST_IS_DIR)) { ! if (g_mkdir (dirname, 0755)) { /* print an error message */ g_print (_("ERROR: Could not create %s\n"), dirname); --- 97,101 ---- if (!g_file_test (dirname, G_FILE_TEST_IS_DIR)) { ! if (g_mkdir_with_parents (dirname, 0755)) { /* print an error message */ g_print (_("ERROR: Could not create %s\n"), dirname); |