diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-07-03 16:59:06 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-07-03 16:59:06 +0000 |
commit | ac7542020a20c519d3f1c73a64ea8e6a907c7ec2 (patch) | |
tree | adde3d61fe6f2e88e1836bced8f08c0ccde5b517 /libexec/talkd | |
parent | 43e7c8a95690d27adb035f16782d7a1e75684aab (diff) |
add a missing newline to an error message.
from Jean-Francois Brousseau <krapht@secureops.com>
ok deraadt@
Diffstat (limited to 'libexec/talkd')
-rw-r--r-- | libexec/talkd/talkd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c index 041e3a0bd74..e3c835a40cc 100644 --- a/libexec/talkd/talkd.c +++ b/libexec/talkd/talkd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: talkd.c,v 1.12 2002/06/21 02:28:32 millert Exp $ */ +/* $OpenBSD: talkd.c,v 1.13 2002/07/03 16:59:05 vincent Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)talkd.c 5.8 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$Id: talkd.c,v 1.12 2002/06/21 02:28:32 millert Exp $"; +static char rcsid[] = "$Id: talkd.c,v 1.13 2002/07/03 16:59:05 vincent Exp $"; #endif /* not lint */ /* @@ -79,8 +79,8 @@ main(argc, argv) int argc; char *argv[]; { - if (getuid()) { - fprintf(stderr, "%s: getuid: not super-user", argv[0]); + if (getuid() != 0) { + fprintf(stderr, "%s: getuid: not super-user\n", argv[0]); exit(1); } openlog("talkd", LOG_PID, LOG_DAEMON); |