aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@openbsd.org>2015-07-16 21:55:03 +0000
committerTed Unangst <tedu@openbsd.org>2015-07-16 21:55:03 +0000
commit42e4d3782bc8da003325fb76c10f7c18093534c0 (patch)
tree1c9163501e074a00f87eb67df62f5e4031326e17
parentdd284ca6d889b2fc1634b7ed30319df90582733c (diff)
downloadopendoas-42e4d3782bc8da003325fb76c10f7c18093534c0.tar.gz
doas grows up. no insults.
-rw-r--r--doas.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/doas.c b/doas.c
index c658e9c..1e1fb53 100644
--- a/doas.c
+++ b/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.1 2015/07/16 20:44:21 tedu Exp $ */
+/* $OpenBSD: doas.c,v 1.2 2015/07/16 21:00:59 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -223,22 +223,7 @@ copyenv(const char **oldenvp, struct rule *rule)
static void __dead
fail(void)
{
- const char *msgs[] = {
- "No lollygagging!",
- "Better luck next time.",
- "PEBKAC detected.",
- "That's what happens when you're lazy.",
- "It is clear that this has not been thought through.",
- "That's the most ridiculous thing I've heard in the last two or three minutes!",
- "No sane people allowed here. Go home.",
- "I would explain, but I am too drunk.",
- "You're not allowed to have an opinion.",
- "Complaint forms are handled in another department.",
- };
- const char *m;
-
- m = msgs[arc4random_uniform(sizeof(msgs) / sizeof(msgs[0]))];
- fprintf(stderr, "%s\n", m);
+ fprintf(stderr, "Permission denied\n");
exit(1);
}