summaryrefslogtreecommitdiff
path: root/usr.bin/at/at.c
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2003-07-23 16:53:34 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2003-07-23 16:53:34 +0000
commitb7d53f3d6f307063475beed5f27c182c727e1e04 (patch)
treeba5c53a1659eb55d740410f981da2bdec6ea44a7 /usr.bin/at/at.c
parent08733e05454ca6f5019c6eb7b53c8194f4a2ad01 (diff)
Add '\n' to error messages in "atrm" mode.
millert@ ok
Diffstat (limited to 'usr.bin/at/at.c')
-rw-r--r--usr.bin/at/at.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index d5cea4175ec..d9b27502499 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at.c,v 1.38 2003/05/04 21:06:30 avsm Exp $ */
+/* $OpenBSD: at.c,v 1.39 2003/07/23 16:53:33 mpech Exp $ */
/*
* at.c : Put file into atrun queue
@@ -42,7 +42,7 @@
#define TIMESIZE 50 /* Size of buffer passed to strftime() */
#ifndef lint
-static const char rcsid[] = "$OpenBSD: at.c,v 1.38 2003/05/04 21:06:30 avsm Exp $";
+static const char rcsid[] = "$OpenBSD: at.c,v 1.39 2003/07/23 16:53:33 mpech Exp $";
#endif
/* Variables to remove from the job's environment. */
@@ -669,7 +669,7 @@ process_jobs(int argc, char **argv, int what)
else if ((pw = getpwnam(argv[i])) != NULL) {
if (real_uid != pw->pw_uid && real_uid != 0) {
fprintf(stderr, "%s: Only the superuser"
- " may %s other users' jobs",
+ " may %s other users' jobs\n",
ProgramName, what == ATRM
? "remove" : "view");
exit(ERROR_EXIT);
@@ -765,7 +765,7 @@ process_jobs(int argc, char **argv, int what)
for (error = 0, i = 0; i < jobs_len; i++) {
if (jobs[i] != NULL) {
if (!force)
- fprintf(stderr, "%s: %s: no such job",
+ fprintf(stderr, "%s: %s: no such job\n",
ProgramName, jobs[i]);
error++;
}