From 41c54e56d6020d3679ba3774b1601f92ea432031 Mon Sep 17 00:00:00 2001 From: guenther Date: Sat, 10 Jan 2015 07:56:16 +0000 Subject: [PATCH] Correct reversed test of setmountent() return Fix from Dennis Lindroos (denafcm (at) gmail.com) --- usr.bin/rdistd/filesys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/rdistd/filesys.c b/usr.bin/rdistd/filesys.c index d827590995c..8d413a416d3 100644 --- a/usr.bin/rdistd/filesys.c +++ b/usr.bin/rdistd/filesys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filesys.c,v 1.15 2014/07/05 10:21:24 guenther Exp $ */ +/* $OpenBSD: filesys.c,v 1.16 2015/01/10 07:56:16 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -216,7 +216,7 @@ makemntinfo(struct mntinfo *mi) mntent_t *mnt; int timeo = 310; - if (setmountent()) { + if (!setmountent()) { message(MT_NERROR, "setmntent failed: %s", SYSERR); return(NULL); } -- 2.20.1