diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-28 23:22:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-28 23:22:22 +0000 |
commit | 88005fb8454df5ee45b68e33cb8bccfd47018a93 (patch) | |
tree | 0b9f6d5ba8337045c3a9acd4342e161ec968bd6e /libexec/rpc.rusersd/rusersd.c | |
parent | fdb827ed181abdc016d2cbc62945b5c5dd358d17 (diff) |
stupid bug written in the last minute
Diffstat (limited to 'libexec/rpc.rusersd/rusersd.c')
-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); } |