From: guenther Date: Sat, 10 Jan 2015 07:56:16 +0000 (+0000) Subject: Correct reversed test of setmountent() return X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=41c54e56d6020d3679ba3774b1601f92ea432031;p=openbsd Correct reversed test of setmountent() return Fix from Dennis Lindroos (denafcm (at) gmail.com) --- 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); }