]> git.pld-linux.org Git - packages/compat-ncurses5.git/commitdiff
- updated.
authorkloczek <kloczek@pld-linux.org>
Fri, 30 Jun 2000 21:56:58 +0000 (21:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ncurses-setuid.patch -> 1.2

ncurses-setuid.patch

index 48c0d638fc2541021cadc2af3290b370df1a3234..70a8351a4493b168f6e100f9036b56a745271d99 100644 (file)
@@ -1,16 +1,14 @@
-diff -Nur ncurses-4.2/ncurses/tinfo/read_termcap.c ncurses-4.2.orig/ncurses/tinfo/read_termcap.c
---- ncurses-4.2/ncurses/tinfo/read_termcap.c   Tue Dec  8 20:47:42 1998
-+++ ncurses-4.2.orig/ncurses/tinfo/read_termcap.c      Tue Dec  8 20:47:13 1998
-@@ -1039,8 +1039,11 @@
-               for (i = 0; i < filecount; i++) {
+--- ncurses-5.0/ncurses/tinfo/read_termcap.c.orig      Tue Jan 11 18:15:07 2000
++++ ncurses-5.0/ncurses/tinfo/read_termcap.c   Tue Jan 11 18:17:27 2000
+@@ -1020,7 +1020,10 @@
+       for (i = 0; i < filecount; i++) {
  
-                       T(("Looking for %s in %s", tn, termpaths[i]));
--                      if ((fp = fopen(termpaths[i], "r")) != (FILE *)0)
-+                      if ((_nc_access(termpaths[i], R_OK) < 0)
-+                          || (fp = fopen(termpaths[i], "r")) == (FILE *)0)
-                       {
-+                          T(("Could not open %s (error %d)", termpaths[i], errno));
-+                      } else {
-                               _nc_set_source(termpaths[i]);
+           T(("Looking for %s in %s", tn, termpaths[i]));
+-          if ((fp = fopen(termpaths[i], "r")) != (FILE *) 0) {
++          if ((_nc_access(termpaths[i], R_OK) < 0)
++              || (fp = fopen(termpaths[i], "r")) == (FILE *)0) {
++              T(("Could not open %s (error %d)", termpaths[i], errno));
++          } else {
+               _nc_set_source(termpaths[i]);
  
-                               /*
+               /*
This page took 0.070671 seconds and 4 git commands to generate.