diff -rcN ndmpcopy-1.1/src/dump.c ndmpcopy-1.1+level_i/src/dump.c *** ndmpcopy-1.1/src/dump.c Mon Oct 6 10:23:38 1997 --- ndmpcopy-1.1+level_i/src/dump.c Mon Apr 16 17:16:41 2001 *************** *** 178,185 **** environment[3].value = "n"; environment[4].name = "FILESYSTEM"; environment[4].value = opts.src_dir; ! environment[5].name = "LEVEL"; ! environment[5].value = opts.level; environment[6].name = "EXTRACT"; environment[6].value = opts.extract; --- 178,190 ---- environment[3].value = "n"; environment[4].name = "FILESYSTEM"; environment[4].value = opts.src_dir; ! if (opts.level[0] == 'i') { ! environment[5].name = "REPLICATE"; ! environment[5].value = "y"; ! } else { ! environment[5].name = "LEVEL"; ! environment[5].value = opts.level; ! } environment[6].name = "EXTRACT"; environment[6].value = opts.extract; diff -rcN ndmpcopy-1.1/src/main.c ndmpcopy-1.1+level_i/src/main.c *** ndmpcopy-1.1/src/main.c Mon Oct 6 10:23:40 1997 --- ndmpcopy-1.1+level_i/src/main.c Tue Apr 17 17:06:00 2001 *************** *** 83,89 **** " dest_auth_password = %s\n" " ndmp_src_port = %d (0 means NDMP default, usually 10000)\n" " ndmp_dest_port = %d (0 means NDMP default, usually 10000)\n" ! " ndmp_dump_level = %s (valid range: 0 - 9)\n" " ndmp_dest_ip_addr = %s (no default: user needs to override dest_filer value)\n" " verbosity = %s\n\n", --- 83,89 ---- " dest_auth_password = %s\n" " ndmp_src_port = %d (0 means NDMP default, usually 10000)\n" " ndmp_dest_port = %d (0 means NDMP default, usually 10000)\n" ! " ndmp_dump_level = %s (valid range: 0 - 9, i)\n" " ndmp_dest_ip_addr = %s (no default: user needs to override dest_filer value)\n" " verbosity = %s\n\n", *************** *** 153,159 **** opts.level[0] = **curarg; /* only recognize first digit */ opts.level[1] = '\0'; ! if (opts.level[0] < '0' || opts.level[0] > '9') { fprintf(stderr,"Error: Invalid level %s.\n",opts.level); usage(); --- 153,159 ---- opts.level[0] = **curarg; /* only recognize first digit */ opts.level[1] = '\0'; ! if ((opts.level[0] < '0' || opts.level[0] > '9') && opts.level[0] != 'i') { fprintf(stderr,"Error: Invalid level %s.\n",opts.level); usage();