]> git.pld-linux.org Git - packages/lynx.git/commitdiff
lynx patch: prevent run lynx from root account
authorArtur Frysiak <artur@frysiak.net>
Tue, 16 Feb 1999 19:18:44 +0000 (19:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lynx-not_for_root.patch -> 1.1

lynx-not_for_root.patch [new file with mode: 0644]

diff --git a/lynx-not_for_root.patch b/lynx-not_for_root.patch
new file mode 100644 (file)
index 0000000..31c24f6
--- /dev/null
@@ -0,0 +1,18 @@
+diff -ur lynx2-8-2/src/LYMain.c lynx2-8-2.new/src/LYMain.c
+--- lynx2-8-2/src/LYMain.c     Mon Feb  8 11:32:59 1999
++++ lynx2-8-2.new/src/LYMain.c Tue Feb 16 14:49:19 1999
+@@ -690,6 +690,14 @@
+     textdomain ("lynx");
+ #endif /* HAVE_LIBINTL_H */
++#ifdef _USE_PLD
++ if (getuid () == 0 || geteuid () == 0) { 
++    printf ("This toy isn't for root\n");
++    exit (1); 
++  }
++  nice (10);
++ #endif
++  
+     /*
+      *        Initialize our startup and global variables.
+      */
This page took 0.072093 seconds and 4 git commands to generate.