diff options
author | 1997-10-06 18:31:01 +0000 | |
---|---|---|
committer | 1997-10-06 18:31:01 +0000 | |
commit | 942a770e8d1dc8a27bf4d82c91380237f49297f3 (patch) | |
tree | 201f33e1b98f535d97f8f611337a265e54e54650 | |
parent | Don't try to do elf2ecoff on bsd (it's a.out) use bsd.elf instead. -moj (diff) | |
download | wireguard-openbsd-942a770e8d1dc8a27bf4d82c91380237f49297f3.tar.xz wireguard-openbsd-942a770e8d1dc8a27bf4d82c91380237f49297f3.zip |
bail if permission problem; ms@xy.org
-rw-r--r-- | usr.bin/at/at.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 3cc692d2824..12cce81c830 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -1,4 +1,4 @@ -/* $OpenBSD: at.c,v 1.13 1997/06/17 20:48:04 kstailey Exp $ */ +/* $OpenBSD: at.c,v 1.14 1997/10/06 18:31:01 deraadt Exp $ */ /* $NetBSD: at.c,v 1.4 1995/03/25 18:13:31 glass Exp $ */ /* @@ -73,7 +73,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ /* File scope variables */ #ifndef lint -static char rcsid[] = "$OpenBSD: at.c,v 1.13 1997/06/17 20:48:04 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: at.c,v 1.14 1997/10/06 18:31:01 deraadt Exp $"; #endif char *no_export[] = @@ -667,6 +667,7 @@ main(argc, argv) if (!check_permission()) { (void)fprintf(stderr, "You do not have permission to use %s.\n", namep); + exit(EXIT_FAILURE); } /* select our program */ |