diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-06 18:31:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-06 18:31:02 +0000 |
commit | 5b951e4a79888a776011e78b6967c23a38ff1ef9 (patch) | |
tree | 166c4cab6b14b2f5c2b9c039cba9a9e0beeda318 /usr.bin/at/at.c | |
parent | c7df8c93f3753a7a40f8e69f699df44beeb41f28 (diff) |
bail if permission problem; ms@xy.org
Diffstat (limited to 'usr.bin/at/at.c')
-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 */ |