NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/48829



The following reply was made to PR bin/48829; it has been noted by GNATS.

From: "Thomas Schmitt" <scdbackup%gmx.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/48829
Date: Wed, 21 May 2014 22:46:31 +0200

 --- usr.sbin/vnconfig/vnconfig.c.orig  2013-06-09 13:25:40.000000000 +0000
 +++ usr.sbin/vnconfig/vnconfig.c       2014-05-21 17:30:56.000000000 +0000
 @@ -318,9 +318,10 @@ config(char *dev, char *file, char *geom
                int     ffd;
  
                ffd = open(file, readonly ? O_RDONLY : O_RDWR);
 -              if (ffd < 0)
 +              if (ffd < 0) {
                        warn("%s", file);
 -              else {
 +                      rv = -1;
 +              } else {
                        (void) close(ffd);
  
                        rv = ioctl(fd, VNDIOCSET, &vndio);
 


Home | Main Index | Thread Index | Old Index