diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-19 17:33:36 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-19 17:33:36 +0000 |
commit | 427059d75bab66fe1efef854f6525207b1aaaeae (patch) | |
tree | 1818be8e1506e63ef51509e71ebe396b44f927fe /usr.sbin | |
parent | c050d69102727367806425d7ba6588e3c58815cf (diff) |
print system error when fopen fails.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/hoststated/parse.y | 4 | ||||
-rw-r--r-- | usr.sbin/relayd/parse.y | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y index e9c5e618ecb..347bb7ea39e 100644 --- a/usr.sbin/hoststated/parse.y +++ b/usr.sbin/hoststated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.71 2007/10/19 14:40:51 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.72 2007/10/19 17:33:35 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -1533,7 +1533,7 @@ pushfile(const char *name, int secret) return (NULL); } if ((nfile->stream = fopen(nfile->name, "r")) == NULL) { - log_warnx("%s", nfile->name); + log_warn("%s", nfile->name); free(nfile->name); free(nfile); return (NULL); diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y index e9c5e618ecb..347bb7ea39e 100644 --- a/usr.sbin/relayd/parse.y +++ b/usr.sbin/relayd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.71 2007/10/19 14:40:51 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.72 2007/10/19 17:33:35 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -1533,7 +1533,7 @@ pushfile(const char *name, int secret) return (NULL); } if ((nfile->stream = fopen(nfile->name, "r")) == NULL) { - log_warnx("%s", nfile->name); + log_warn("%s", nfile->name); free(nfile->name); free(nfile); return (NULL); |