aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xsane/files
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xsane/files')
-rw-r--r--graphics/xsane/files/patch-src::xsane-back-gtk.c37
-rw-r--r--graphics/xsane/files/patch-src::xsane-save.c10
-rw-r--r--graphics/xsane/files/patch-src::xsane-scan.c11
3 files changed, 0 insertions, 58 deletions
diff --git a/graphics/xsane/files/patch-src::xsane-back-gtk.c b/graphics/xsane/files/patch-src::xsane-back-gtk.c
deleted file mode 100644
index ea5d1e225d4..00000000000
--- a/graphics/xsane/files/patch-src::xsane-back-gtk.c
+++ /dev/null
@@ -1,37 +0,0 @@
---- src/xsane-back-gtk.c.tmpfile Wed Nov 21 18:43:20 2001
-+++ src/xsane-back-gtk.c Wed Nov 21 18:57:22 2001
-@@ -319,7 +319,6 @@
- {
- char tmpbuf[256];
- uid_t uid;
-- int rnd;
-
- uid = getuid();
- snprintf(tmpbuf, sizeof(tmpbuf), "%d-", uid);
-@@ -341,12 +340,6 @@
- memcpy(buf + len, "XXXXXX", 6); /* create unique filename */
- len += 6;
- buf[len] = '\0';
-- memcpy(buf, mktemp(buf), len);
--
-- rnd = random() & 65535; /* add random number */
-- snprintf(tmpbuf, sizeof(tmpbuf), "%05d-", rnd);
-- memcpy(buf+len, tmpbuf, strlen(tmpbuf));
-- len += 6;
- }
-
- if (dev_name)
-@@ -410,6 +403,13 @@
-
- buf[len++] = '\0';
-
-+ {
-+ int fd = mkstemp (buf);
-+ if (fd == -1)
-+ return -1;
-+ close (fd);
-+ }
-+
- DBG(DBG_proc, "path = \"%s\"\n", buf);
-
- return 0;
diff --git a/graphics/xsane/files/patch-src::xsane-save.c b/graphics/xsane/files/patch-src::xsane-save.c
deleted file mode 100644
index 89350365d87..00000000000
--- a/graphics/xsane/files/patch-src::xsane-save.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/xsane-save.c.tmpfile Wed Nov 21 18:47:48 2001
-+++ src/xsane-save.c Wed Nov 21 18:47:56 2001
-@@ -2102,7 +2102,6 @@
-
- xsane_read_pnm_header(infile, &image_info);
-
-- remove(output_filename);
- umask((mode_t) preferences.image_umask); /* define image file permissions */
- outfile = fopen(output_filename, "wb"); /* b = binary mode for win32 */
- umask(XSANE_DEFAULT_UMASK); /* define new file permissions */
diff --git a/graphics/xsane/files/patch-src::xsane-scan.c b/graphics/xsane/files/patch-src::xsane-scan.c
deleted file mode 100644
index 4f1585270eb..00000000000
--- a/graphics/xsane/files/patch-src::xsane-scan.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/xsane-scan.c.tmpfile Wed Nov 21 18:48:01 2001
-+++ src/xsane-scan.c Wed Nov 21 18:48:08 2001
-@@ -1660,7 +1660,6 @@
- umask((mode_t) preferences.image_umask); /* define image file permissions */
- }
-
-- remove(xsane.dummy_filename); /* remove existing file */
- xsane.out = fopen(xsane.dummy_filename, "wb"); /* b = binary mode for win32 */
- umask(XSANE_DEFAULT_UMASK); /* define new file permissions */
-
-