bin/94045: [nullfs] dump(8) seg-fault on nullfs
Andrey V. Elsukov
bu7cher at yandex.ru
Tue Aug 15 17:10:25 UTC 2006
The following reply was made to PR bin/94045; it has been noted by GNATS.
From: "Andrey V. Elsukov" <bu7cher at yandex.ru>
To: bug-followup at FreeBSD.org, gogo at cs.uni-sb.de,
pietro.cerutti at gmail.com
Cc:
Subject: Re: bin/94045: [nullfs] dump(8) seg-fault on nullfs
Date: Tue, 15 Aug 2006 21:07:04 +0400 (MSD)
>I think the attached patch fix this problem.
Sorry for base64, the patch is simple:
Index: main.c
===================================================================
RCS file: /ncvs/src/sbin/dump/main.c,v
retrieving revision 1.63
diff -u -r1.63 main.c
--- main.c 18 Apr 2005 15:08:29 -0000 1.63
+++ main.c 15 Aug 2006 16:42:04 -0000
@@ -312,6 +312,8 @@
dt = fstabsearch(disk);
if (dt != NULL) {
disk = rawname(dt->fs_spec);
+ if (disk == NULL)
+ errx(X_STARTUP, "%s: unknown file system", dt->fs_spec);
(void)strncpy(spcl.c_dev, dt->fs_spec, NAMELEN);
(void)strncpy(spcl.c_filesys, dt->fs_file, NAMELEN);
} else {
--
WBR, Andrey V. Elsukov
More information about the freebsd-bugs
mailing list