diff -rcN ndmpcopy-1.2/src/dump.c ndmpcopy-1.2+level_i/src/dump.c *** ndmpcopy-1.2/src/dump.c Tue Sep 12 15:13:15 2000 --- ndmpcopy-1.2+level_i/src/dump.c Thu Apr 19 15:07:08 2001 *************** *** 186,193 **** 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; --- 186,198 ---- 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.2/src/main.c ndmpcopy-1.2+level_i/src/main.c *** ndmpcopy-1.2/src/main.c Tue Sep 12 15:13:15 2000 --- ndmpcopy-1.2+level_i/src/main.c Thu Apr 19 15:07:40 2001 *************** *** 93,99 **** " 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" " different_passwords = %s\n\n", --- 93,99 ---- " 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" " different_passwords = %s\n\n", *************** *** 166,172 **** 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(); --- 166,172 ---- 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();