X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Fmain.c;h=b73a7887012475bfdd86f4953e5c0110679f59cb;hp=fec91af93d1c755b9d516e2ce751aa90356a171c;hb=97be3358a32b246d4336692ebad4b1c366446932;hpb=c9e4e868a4f92342e883219136acc2b6a405102f diff --git a/dump/main.c b/dump/main.c index fec91af..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.93 2004/06/02 09:22:49 stelian Exp $"; + "$Id: main.c,v 1.94 2004/07/05 15:12:45 stelian Exp $"; #endif /* not lint */ #include @@ -584,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,