X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Fmain.c;h=9f61fb686edcc4ae6ff56b6e201eb146eeb16c9d;hp=b981cd8c92aa6f098c5d1b2116254bfe8a3c258e;hb=a23c5022421f8f7e2182300beb938167a3975286;hpb=58d8534847bc23e3b476372c11b368e4020676f7 diff --git a/dump/main.c b/dump/main.c index b981cd8..9f61fb6 100644 --- a/dump/main.c +++ b/dump/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.29 2000/11/10 14:42:25 stelian Exp $"; + "$Id: main.c,v 1.30 2000/11/30 09:53:14 stelian Exp $"; #endif /* not lint */ #include @@ -513,8 +513,9 @@ main(int argc, char *argv[]) } /* if no user label specified, use ext2 filesystem label if available */ if (spcl.c_label[0] == '\0') { - if (fs->super->s_volume_name[0] != '\0') { - strncpy(spcl.c_label, fs->super->s_volume_name,LBLSIZE); + const char *lbl; + if ( (lbl = get_device_label(disk)) != NULL) { + strncpy(spcl.c_label, lbl, LBLSIZE); spcl.c_label[LBLSIZE-1] = '\0'; } else