From: Arkadiusz Miƛkiewicz Date: Sat, 18 Mar 2006 18:23:48 +0000 (+0000) Subject: - obsolete X-Git-Tag: AC-STABLE~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpinfo.git;a=commitdiff_plain;h=770b00b6c3c8d9938450b38c283b656448ffd2c2;ds=sidebyside - obsolete Changed files: pinfo-mkstemp.patch -> 1.2 pinfo-sig11.patch -> 1.3 --- diff --git a/pinfo-mkstemp.patch b/pinfo-mkstemp.patch deleted file mode 100644 index 78f3a92..0000000 --- a/pinfo-mkstemp.patch +++ /dev/null @@ -1,131 +0,0 @@ ---- pinfo-0.6.0/src/manual.c.mkstemp Wed Aug 2 14:14:21 2000 -+++ pinfo-0.6.0/src/manual.c Wed Aug 2 14:25:11 2000 -@@ -168,13 +168,18 @@ - size_t macroline_size; - int ignored_items = 0, i = 0; - char zipped = 0; -+ char tempbuf[PATH_MAX] = "/tmp/pinfoXXXXXX"; -+ int fd; - - if (tmpfilename1) - { - unlink (tmpfilename1); - xfree (tmpfilename1); - } -- tmpfilename1 = tempnam ("/tmp", NULL); -+ fd = mkstemp(tempbuf); -+ fchmod(fd, S_IRUSR | S_IWUSR); -+ close(fd); -+ tmpfilename1 = strdup(tempbuf); - - #ifdef getmaxyx - init_curses (); -@@ -199,6 +204,8 @@ - if (ignoredmacros) /* if the pointer is non-null */ - if (*ignoredmacros && strlen (ignoredmacros)) /* if there are some macros */ - { /* that should be ignored */ -+ char tempbuf[PATH_MAX] = "/tmp/pinfoXXXXXX"; -+ int fd; - *location = '\0'; - snprintf (cmd, 255, "man -W %s %s", /* we need to know the path */ - ManOptions, -@@ -268,9 +275,11 @@ - } - else - source = fopen (location, "r"); /* from cmd output */ -- name = tempnam ("/tmp", NULL); -+ fd = mkstemp(tempbuf); -+ fchmod(fd, S_IRUSR | S_IWUSR); -+ name = strdup(tempbuf); - raw_tempfilename = name; -- id = fopen (name, "w"); -+ id = fdopen (fd, "w"); - - while (!feof (source)) /* we read until eof */ - { -@@ -370,12 +379,17 @@ - manual_aftersearch = 0; - if (return_value != -1) /* -1 is quit key */ - { -+ char tempbuf[PATH_MAX] = "/tmp/pinfoXXXXXX"; -+ int fd; - if (tmpfilename2) - { - unlink (tmpfilename2); - xfree (tmpfilename2); - } -- tmpfilename2 = tempnam ("/tmp", NULL); -+ fd = mkstemp(tempbuf); -+ fchmod(fd, S_IRUSR | S_IWUSR); -+ close(fd); -+ tmpfilename2 = strdup(tempbuf); - if (return_value != -2) /* key_back is not pressed; - and return_value is an - offset to manuallinks */ ---- pinfo-0.6.0/src/filehandling_functions.c.mkstemp Wed Aug 2 14:14:26 2000 -+++ pinfo-0.6.0/src/filehandling_functions.c Wed Aug 2 14:25:42 2000 -@@ -452,12 +452,17 @@ - - if (number == 0) /* initialize tmp filename for file 1 */ - { -+ char tmpbuf[PATH_MAX] = "/tmp/pinfoXXXXXX"; -+ int fd; - if (tmpfilename1) - { - unlink (tmpfilename1); /* erase old tmpfile */ - free (tmpfilename1); - } -- tmpfilename1 = tempnam ("/tmp", NULL); -+ fd = mkstemp(tmpbuf); -+ fchmod(fd, S_IRUSR | S_IWUSR); -+ close(fd); -+ tmpfilename1 = strdup(tmpbuf); - tmpfilename = tmpfilename1; /* later we will refere only to tmp1 */ - } - for (i = 0; i < infopathcount; i++) /* go through all paths */ -@@ -601,23 +606,33 @@ - - if (number == 0) /* initialize tmp filename for file 1 */ - { -+ char tmpbuf[PATH_MAX] = "/tmp/pinfoXXXXXX"; -+ int fd; - if (tmpfilename1) - { - unlink (tmpfilename1); /* erase old tmpfile */ - free (tmpfilename1); - } -- tmpfilename1 = tempnam ("/tmp", NULL); -+ fd = mkstemp(tmpbuf); -+ fchmod(fd, S_IRUSR | S_IWUSR); -+ close(fd); -+ tmpfilename1 = strdup(tmpbuf); - tmpfilename = tmpfilename1; /* later we will refere only to tmp1 */ - } - else - /* initialize tmp filename for file 2 */ - { -+ char tmpbuf[PATH_MAX] = "/tmp/pinfoXXXXXX"; -+ int fd; - if (tmpfilename2) - { - unlink (tmpfilename2); /* erase old tmpfile */ - free (tmpfilename2); - } -- tmpfilename2 = tempnam ("/tmp", NULL); -+ fd = mkstemp(tmpbuf); -+ fchmod(fd, S_IRUSR | S_IWUSR); -+ close(fd); -+ tmpfilename2 = strdup(tmpbuf); - tmpfilename = tmpfilename2; /* later we will refere only to tmp2 */ - } - ---- pinfo-0.6.0/src/common_includes.h.mkstemp Wed Aug 2 14:22:04 2000 -+++ pinfo-0.6.0/src/common_includes.h Wed Aug 2 14:22:15 2000 -@@ -14,6 +14,7 @@ - #include - #include - #include -+#include - #include - #include - #include diff --git a/pinfo-sig11.patch b/pinfo-sig11.patch deleted file mode 100644 index ef57e49..0000000 --- a/pinfo-sig11.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -urN pinfo-0.6.8/src/video.c pinfo-0.6.8.patch/src/video.c ---- pinfo-0.6.8/src/video.c 2002-07-21 20:42:00.000000000 +0200 -+++ pinfo-0.6.8.patch/src/video.c 2004-09-25 05:20:10.042759936 +0200 -@@ -66,7 +66,8 @@ - attrset (normal); - for (i = pos; (i < lines) && (i < pos + maxy - 2); i++) - { -- int tmp = strlen (message[i]) - 1; -+ int tmp = strlen (message[i]); -+ if (tmp) tmp--; - message[i][tmp] = 0; - if(tmp>column) - mvaddstr (i + 1 - pos, 0, message[i]+column);