Changeset 1917 in MondoRescue for branches/2.2.6/mondo/src/common/libmondo-cli.c
- Timestamp:
- Apr 17, 2008, 1:29:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-cli.c
r1915 r1917 162 162 163 163 #include <pthread.h> 164 #include "../common/my-stuff.h" 165 #include "../common/mondostructures.h" 166 #include "mondo-cli-EXT.h" 167 #include "../common/libmondo.h" 168 169 //static char cvsid[] = "$Id$"; 164 #include "my-stuff.h" 165 #include "mondostructures.h" 166 #include "libmondo-cli-EXT.h" 167 #include "libmondo.h" 170 168 171 169 extern int g_loglevel; 172 170 extern bool g_text_mode; 173 externbool g_skip_floppies; ///< Whether to skip the creation of boot disks171 bool g_skip_floppies; ///< Whether to skip the creation of boot disks 174 172 extern char g_startdir[MAX_STR_LEN]; ///< ????? @bug ????? 175 173 extern bool g_sigpipe; 174 extern char *MONDO_OPTIONS; 176 175 177 176 /*@ file pointer **************************************************/ … … 190 189 191 190 extern void setup_tmpdir(char *path); 192 193 /**194 * Whether we're restoring from ISOs. Obviously not, since this is the195 * backup program.196 * @note You @b MUST declare this variable somewhere in your program if197 * you use libmondo. Otherwise the link will fail.198 * @ingroup globalGroup199 */200 bool g_ISO_restore_mode = FALSE;201 202 203 191 extern double g_kernel_version; 204 192 extern int g_current_media_number; … … 208 196 /* Do we use extended attributes and acl ? 209 197 * By default no, use --acl & --attr options to force their usage */ 210 char *g_getfacl = NULL;211 char *g_getfattr = NULL;198 extern char *g_getfacl; 199 extern char *g_getfattr; 212 200 213 201 /* Reference to global bkpinfo */ … … 239 227 240 228 tmp = malloc(9*MAX_STR_LEN); 241 sensibly_set_tmpdir_and_scratchdir();242 229 for (i = 0; i < 128; i++) { 243 230 flag_val[i][0] = '\0'; … … 378 365 if (flag_set['K']) { 379 366 g_loglevel = atoi(flag_val['K']); 367 log_msg(1,"Loglevel forced to %s",g_loglevel); 380 368 if (g_loglevel < 3) { 381 369 g_loglevel = 3; … … 997 985 } 998 986 999 i = flag_set['O'] + flag_set['V']; 1000 if (i == 0) { 1001 retval++; 1002 log_to_screen("Specify backup (-O), verify (-V) or both (-OV).\n"); 987 if ( ! bkpinfo->restore_data ) { 988 i = flag_set['O'] + flag_set['V']; 989 if (i == 0) { 990 retval++; 991 log_to_screen("Specify backup (-O), verify (-V) or both (-OV).\n"); 992 } 1003 993 } 1004 994 … … 1045 1035 } 1046 1036 while ((opt = 1047 getopt(argc, argv, 1048 "0123456789A:B:C:DE:FGHI:J:K:LNOP:QRS:T:UVWb:c:d:ef:gik:l:mn:op:rs:tuw:x:z")) 1037 getopt(argc, argv, MONDO_OPTIONS)) 1049 1038 != -1) { 1050 1039 if (opt == '?') {
Note:
See TracChangeset
for help on using the changeset viewer.