From 633963a251fb12a63e43a7f6f2391dc9507972a7 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Thu, 31 Jan 2002 10:49:16 +0000 Subject: [PATCH] dump LABEL=/ fix. --- CHANGES | 6 +++++- dump/main.c | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 0af096f..e6fc072 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.159 2002/01/31 10:25:55 stelian Exp $ +$Id: CHANGES,v 1.160 2002/01/31 10:49:16 stelian Exp $ Changes between versions 0.4b26 and 0.4b27 (released ???????????????) ===================================================================== @@ -32,6 +32,10 @@ Changes between versions 0.4b26 and 0.4b27 (released ???????????????) 7. Small fix in restore making it able to read some (broken ?) Solaris ufsdump tapes. +8. Fixed dump to correctly recognise the root filesystem when using + ext2 disk labels (LABEL=/). Thanks to John Yu + for reporting this bug. + Changes between versions 0.4b25 and 0.4b26 (released January 7, 2002) ===================================================================== diff --git a/dump/main.c b/dump/main.c index 6ac72ee..ee67172 100644 --- a/dump/main.c +++ b/dump/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.68 2002/01/25 15:08:59 stelian Exp $"; + "$Id: main.c,v 1.69 2002/01/31 10:49:17 stelian Exp $"; #endif /* not lint */ #include @@ -531,7 +531,8 @@ main(int argc, char *argv[]) */ i = strlen(diskparam) - 1; if (i > 1 && diskparam[i] == '/') - diskparam[i] = '\0'; + if (!(i == 6 && !strcmp(diskparam, "LABEL=/"))) + diskparam[i] = '\0'; disk = get_device_name(diskparam); if (!disk) { /* null means the disk is some form -- 2.39.2