]> granicus.if.org Git - sudo/commitdiff
Initial revision
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Nov 1993 07:45:01 +0000 (07:45 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Nov 1993 07:45:01 +0000 (07:45 +0000)
insults.h [new file with mode: 0644]

diff --git a/insults.h b/insults.h
new file mode 100644 (file)
index 0000000..f1a6129
--- /dev/null
+++ b/insults.h
@@ -0,0 +1,47 @@
+#ifdef USE_INSULTS
+/*
+ *  CU sudo version 1.3
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 1, or (at your option)
+ *  any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *  Please send bugs, changes, problems to sudo-bugs.cs.colorado.edu
+ */
+
+/*
+ * To add insult to injury, just add to the following strings and
+ * adjust NOFINSULTS accordingly.  This code taken from the original
+ * sudo(8).
+ */
+
+char *insults[] = {
+     "Wrong!  You cheating scum!\n",
+     "No soap, honkie-lips.\n",
+     "Where did you learn to type?\n",
+     "Are you on drugs?\n",
+     "My pet ferret can type better than you!\n",
+     "You type like i drive.\n",
+     "Do you think like you type?\n",
+     "Your mind just hasn't been the same since the electro-shock, has it?\n"
+};
+
+#define NOFINSULTS 8 /* number of insults - 1 */
+
+/*
+ *     return a random insult.
+ */
+
+#define INSULT         (insults[time(NULL) % NOFINSULTS])
+
+#endif /* USE_INSULTS */