diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-01-10 07:56:17 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-01-10 07:56:17 +0000 |
commit | 968d819711e950c5d540ba5abe880010aa3dbd5b (patch) | |
tree | 5621b8f60a7360c99d9c88570f39c66e76b9b43c /usr.bin | |
parent | 7e4da0d1ef2a3fb1d55e3fbccf65b0dad65c543e (diff) |
Correct reversed test of setmountent() return
Fix from Dennis Lindroos (denafcm (at) gmail.com)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rdistd/filesys.c | 4 |
1 files 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); } |