Changeset 1100 in MondoRescue
- Timestamp:
- Feb 5, 2007, 5:00:16 PM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-files.c
r1098 r1100 1221 1221 } 1222 1222 1223 mkdir(MONDO_CACHE,0x755);1224 1223 fd1 = mr_fopen(MONDORESTORECFG, "a"); 1225 1224 -
branches/stable/mondo/src/include/mr_file.h
r1092 r1100 20 20 extern FILE *mr_fprintf(FILE *stream, const char *fmt, ...); 21 21 extern void mr_fclose(FILE *fd); 22 extern void mr_mkdir(const char *pathname, mode_t mode); 22 23 23 24 #endif /* MR_FILE_H */ -
branches/stable/mondo/src/lib/mr_file.c
r1091 r1100 11 11 12 12 #include <stdio.h> 13 #include <sys/types.h> 14 #include <sys/stat.h> 15 13 16 #include "mr_err.h" 14 17 #include "mr_msg.h" … … 50 53 fd = NULL; 51 54 } 55 56 void mr_mkdir(const char *pathname, mode_t mode) { 57 58 if (mkdir(pathname,mode) != 0) { 59 mr_msg("Unable to create directory %s",pathname); 60 mr_exit(-1,"Exiting"); 61 } 62 } -
branches/stable/mondo/src/mondoarchive/main.c
r1087 r1100 11 11 /************************* #include statements *************************/ 12 12 #include <pthread.h> 13 //#include <config.h>14 //#include "../../config.h"15 13 #include <stdio.h> 16 14 #include <stdlib.h> 15 #include <sys/types.h> 16 #include <sys/stat.h> 17 #include <unistd.h> 18 17 19 #include "my-stuff.h" 18 20 #include "../common/mondostructures.h" … … 152 154 { 153 155 struct s_bkpinfo *bkpinfo; 156 struct stat stbuf; 154 157 char *tmp; 155 158 int res, retval; … … 202 205 setenv("ARCH", tmp, 1); 203 206 204 /* Add MONDO_SHARE environment variable for mindi */207 /* Add MONDO_SHARE + others environment variable for mindi */ 205 208 setenv_mondo_share(); 209 210 if (stat(MONDO_CACHE, &stbuf) != 0) { 211 mr_mkdir(MONDO_CACHE,0x755); 212 } 206 213 207 214 /* Configure the bkpinfo structure, global file paths, etc. */
Note:
See TracChangeset
for help on using the changeset viewer.