diff options
author | 2002-06-28 23:22:21 +0000 | |
---|---|---|
committer | 2002-06-28 23:22:21 +0000 | |
commit | 4719a277e60a53aad52a4d5aae7494b3b6478e48 (patch) | |
tree | 4630b8a3325c0e58c3c21e94451a315107690a11 | |
parent | gidset[2] -> gidset[1]; markus ok (diff) | |
download | wireguard-openbsd-4719a277e60a53aad52a4d5aae7494b3b6478e48.tar.xz wireguard-openbsd-4719a277e60a53aad52a4d5aae7494b3b6478e48.zip |
stupid bug written in the last minute
-rw-r--r-- | libexec/rpc.rusersd/rusersd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.rusersd/rusersd.c b/libexec/rpc.rusersd/rusersd.c index 3fd4fcebb5c..520a351863a 100644 --- a/libexec/rpc.rusersd/rusersd.c +++ b/libexec/rpc.rusersd/rusersd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rusersd.c,v 1.8 2002/06/28 22:59:20 deraadt Exp $ */ +/* $OpenBSD: rusersd.c,v 1.9 2002/06/28 23:22:21 deraadt Exp $ */ /*- * Copyright (c) 1993 John Brezak @@ -29,7 +29,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: rusersd.c,v 1.8 2002/06/28 22:59:20 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rusersd.c,v 1.9 2002/06/28 23:22:21 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -69,7 +69,7 @@ main(int argc, char *argv[]) struct passwd *pw; SVCXPRT *transp; - if (utmp_fd = open(_PATH_UTMP, O_RDONLY) == -1) { + if ((utmp_fd = open(_PATH_UTMP, O_RDONLY)) == -1) { syslog(LOG_ERR, "cannot open %s", _PATH_UTMP); exit(1); } |