summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-01-26 10:31:04 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-01-26 10:31:04 +0000
commit9bb01c7bf9df6582bbab9683e5b8a395cd98d3c5 (patch)
tree1991c95f1cd08239b65388e80652d6ad5de3f282 /sbin/dhclient
parent474d6a33498c3cab38079cca40ba83c5f636ce6b (diff)
Don't validate '-c' with S_ISREG(). The install script uses /dev/stdin.
Noticed by sebastia@
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 9dae9a1361a..733e33f43de 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.658 2020/01/24 00:54:16 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.659 2020/01/26 10:31:03 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -533,9 +533,7 @@ main(int argc, char *argv[])
*/
if (errno != ENOENT)
fatal("lstat(%s)", path_dhclient_conf);
- } else if (S_ISREG(sb.st_mode) == 0)
- fatalx("'%s' is not a regular file",
- path_dhclient_conf);
+ }
}
if ((cmd_opts & (OPT_FOREGROUND | OPT_NOACTION)) != 0)