X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Fmain.c;h=b73a7887012475bfdd86f4953e5c0110679f59cb;hp=cecaaae79be572f16462083c3fa62479850f876b;hb=1ba0c4bb3595ad2d15cd378e989933a883c8f77e;hpb=28ba5caee0ed25d3b38da769967173e5710bc10c diff --git a/dump/main.c b/dump/main.c index cecaaae..b73a788 100644 --- a/dump/main.c +++ b/dump/main.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.92 2004/04/21 08:55:51 stelian Exp $"; + "$Id: main.c,v 1.94 2004/07/05 15:12:45 stelian Exp $"; #endif /* not lint */ #include @@ -58,6 +58,7 @@ static const char rcsid[] = #include #include #ifdef __linux__ +#include #ifdef HAVE_EXT2FS_EXT2_FS_H #include #else @@ -583,13 +584,9 @@ main(int argc, char *argv[]) diskparam[i] = '\0'; disk = get_device_name(diskparam); - if (!disk) { /* null means the disk is some form - of LABEL= or UID= but it was not - found */ - msg("Cannot find a disk having %s\n", diskparam); - msg("The ENTIRE dump is aborted.\n"); - exit(X_STARTUP); - } + if (!disk) + disk = strdup(diskparam); + /* * disk can be either the full special file name, * the suffix of the special file name,