Changeset 1106 in MondoRescue for trunk/mondo/src/mondoarchive/main.c
- Timestamp:
- Feb 7, 2007, 11:55:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/mondoarchive/main.c
r1086 r1106 15 15 #include <stdio.h> 16 16 #include <stdlib.h> 17 #include <sys/types.h> 18 #include <sys/stat.h> 19 #include <unistd.h> 20 17 21 #include "my-stuff.h" 18 22 #include "../common/mondostructures.h" … … 21 25 22 26 #include "mr_mem.h" 27 #include "mr_str.h" 28 #include "mr_file.h" 23 29 24 30 // for CVS … … 124 130 } 125 131 126 /* Return a string containing the date */127 char *mr_date(void) {128 129 time_t tcurr;130 131 tcurr = time(NULL);132 return(ctime(&tcurr));133 }134 135 132 /*-----------------------------------------------------------*/ 136 133 … … 144 141 { 145 142 struct s_bkpinfo *bkpinfo; 143 struct stat stbuf; 146 144 char *tmp; 147 145 int res = 0; … … 192 190 setenv("ARCH", get_architecture(), 1); 193 191 194 /* Add MONDO_SHARE environment variable for mindi */192 /* Add MONDO_SHARE + others environment variable for mindi */ 195 193 setenv_mondo_share(); 194 195 if (stat(MONDO_CACHE, &stbuf) != 0) { 196 mr_mkdir(MONDO_CACHE,0x755); 197 } 196 198 197 199 /* Configure the bkpinfo structure, global file paths, etc. */
Note:
See TracChangeset
for help on using the changeset viewer.