Changeset 783 in MondoRescue for trunk/mondo/mondo/mondoarchive/main.c
- Timestamp:
- Aug 31, 2006, 5:09:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondoarchive/main.c
r688 r783 17 17 #include <stdio.h> 18 18 #include <stdlib.h> 19 #include " ../common/my-stuff.h"19 #include "my-stuff.h" 20 20 #include "../common/mondostructures.h" 21 21 #include "../common/libmondo.h" … … 33 33 extern bool g_remount_cdrom_at_end, g_remount_floppy_at_end; 34 34 extern char *g_mondo_home; 35 extern char *g_tmpfs_mountpt;36 35 extern char *g_erase_tmpdir_and_scratchdir; 37 36 extern double g_kernel_version; … … 41 40 long diffs; 42 41 43 extern t_bkptype g_backup_media_type;44 42 extern int g_loglevel; 45 43 46 44 /****************** subroutines used only by main.c ******************/ 47 45 46 extern void mr_archive_init_conf(struct s_mr_conf *mr_conf); 48 47 49 48 /** … … 131 130 { 132 131 struct s_bkpinfo *bkpinfo; 133 struct s_mrconf *mrconf;134 132 char *tmp; 135 133 int res = 0; … … 147 145 } 148 146 149 /* If -V, -v or --version then echo version no. and quit */147 /* If -V, -v or --version then echo version no. and quit */ 150 148 if (argc == 2 151 149 && (!strcmp(argv[argc - 1], "-v") || !strcmp(argv[argc - 1], "-V") … … 155 153 } 156 154 157 /* Initialize variables */ 158 155 /* Initialize variables */ 159 156 malloc_libmondo_global_strings(); 160 161 /* Initialize Configuration Structure */162 mrarchive_init_conf(mrconf);163 157 164 158 res = 0; … … 170 164 } 171 165 172 173 /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */ 166 /* Initialize Configuration Structure */ 167 mr_archive_init_conf(bkpinfo->mr_conf); 168 169 170 /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */ 174 171 asprintf(&tmp, "/sbin:/usr/sbin:%s:/usr/local/sbin", getenv("PATH")); 175 172 setenv("PATH", tmp, 1); 176 173 paranoid_free(tmp); 177 174 178 /* Add the ARCH environment variable for ia64 purposes */175 /* Add the ARCH environment variable for ia64 purposes */ 179 176 setenv("ARCH", get_architecture(), 1); 180 177 … … 331 328 /* If we're meant to backup then backup */ 332 329 if (bkpinfo->backup_data) { 333 res = backup_data(bkpinfo , mrconf);330 res = backup_data(bkpinfo); 334 331 retval += res; 335 332 if (res) {
Note:
See TracChangeset
for help on using the changeset viewer.