summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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));