]> git.pld-linux.org Git - packages/lynx.git/blame - lynx-not_for_root.patch
- Release 3.
[packages/lynx.git] / lynx-not_for_root.patch
CommitLineData
27acbdcb
AF
1diff -ur lynx2-8-2/src/LYMain.c lynx2-8-2.new/src/LYMain.c
2--- lynx2-8-2/src/LYMain.c Mon Feb 8 11:32:59 1999
3+++ lynx2-8-2.new/src/LYMain.c Tue Feb 16 14:49:19 1999
4@@ -690,6 +690,14 @@
5 textdomain ("lynx");
6 #endif /* HAVE_LIBINTL_H */
7
8+#ifdef _USE_PLD
9+ if (getuid () == 0 || geteuid () == 0) {
10+ printf ("This toy isn't for root\n");
11+ exit (1);
12+ }
13+ nice (10);
14+ #endif
15+
16 /*
17 * Initialize our startup and global variables.
18 */
This page took 0.059983 seconds and 4 git commands to generate.