Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 17:10:22 GMT
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/94045: [nullfs] dump(8) seg-fault on nullfs
Message-ID:  <200608151710.k7FHAMCC046515@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/94045; it has been noted by GNATS.

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: bug-followup@FreeBSD.org, gogo@cs.uni-sb.de,
	pietro.cerutti@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608151710.k7FHAMCC046515>