summaryrefslogtreecommitdiff
path: root/src/bsnmp-regex.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-03-12 01:08:05 +0000
committerStef Walter <stef@memberwebs.com>2006-03-12 01:08:05 +0000
commit30702442c8a4b0ce65a7ce05166004de6325911d (patch)
tree740a9285264aa39d03d47ba238c120bae159e9a5 /src/bsnmp-regex.c
parent747d94deb016b5eb4d5738d785781463f8ba4595 (diff)
Fix bug with not creating FIFO properly.
Diffstat (limited to 'src/bsnmp-regex.c')
-rw-r--r--src/bsnmp-regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bsnmp-regex.c b/src/bsnmp-regex.c
index 12950b7..98a94a9 100644
--- a/src/bsnmp-regex.c
+++ b/src/bsnmp-regex.c
@@ -465,7 +465,7 @@ open_fifo ()
return -1;
}
- } else if (errno != ENOENT) {
+ } else if (errno == ENOENT) {
/* Try and create it */
if (mkfifo (regex_fifo, S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
emsg ("couldn't create fifo: %s: %s", regex_fifo, strerror (errno));