]> git.pld-linux.org Git - packages/lynx.git/blob - lynx-not_for_root.patch
- added missing BuildRequires: openssl-devel >= 0.9.6a
[packages/lynx.git] / lynx-not_for_root.patch
1 diff -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.049441 seconds and 3 git commands to generate.