summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-12 12:53:53 +0000
committerbrian <brian@FreeBSD.org>2001-03-12 12:53:53 +0000
commit24ef2a2adf3471f36e1beab6ca84e35e5a9515bd (patch)
tree067f1c65832010a2c56d7698b4dacbb7f7ccc55a /usr.sbin
parent338f25906d3f2b09a1e95a3e879422d0965a8fbd (diff)
downloadFreeBSD-src-24ef2a2adf3471f36e1beab6ca84e35e5a9515bd.zip
FreeBSD-src-24ef2a2adf3471f36e1beab6ca84e35e5a9515bd.tar.gz
Deal with ENOENT properly on non-devfs machines
Broken in revision 1.109
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/bundle.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 1769b9f..c2e659e 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -721,11 +721,10 @@ bundle_Create(const char *prefix, int type, int unit)
}
}
#endif
- err = errno;
- break;
- } else if (errno == ENOENT) {
- if (++enoentcount > 2)
+ if (errno != ENOENT || ++enoentcount > 2) {
+ err = errno;
break;
+ }
} else
err = errno;
}
OpenPOWER on IntegriCloud