17 lines
663 B
Diff
17 lines
663 B
Diff
--- xcin.orig/src/lib/xcintool/check_file.c 2001-09-21 03:00:57.000000000 +1000
|
|
+++ xcin/src/lib/xcintool/check_file.c 2004-01-28 16:21:56.000000000 +1000
|
|
@@ -155,8 +155,10 @@
|
|
snprintf(path, 1024, "%s/%s", xrc->usrhome, xrc->user_dir);
|
|
else
|
|
strncpy(path, xrc->user_dir, 1024);
|
|
- if (check_file_exist(path, FTYPE_DIR) == False)
|
|
- xrc->user_dir = NULL;
|
|
- else
|
|
- xrc->user_dir = (char *)strdup(path);
|
|
+ if (check_file_exist(xrc->usrhome, FTYPE_DIR) == True)
|
|
+ if (check_file_exist(path, FTYPE_DIR) == False){
|
|
+ mkdir(path, 0700);
|
|
+ xrc->user_dir = (char *)strdup(path);
|
|
+ } else
|
|
+ xrc->user_dir = (char *)strdup(path);
|
|
}
|