/[packages]/updates/1/hplip/current/SOURCES/hplip-CVE-2011-2722.patch
ViewVC logotype

Contents of /updates/1/hplip/current/SOURCES/hplip-CVE-2011-2722.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 142615 - (show annotations) (download)
Mon Sep 12 08:06:27 2011 UTC (12 years, 7 months ago) by doktor5000
File size: 747 byte(s)
SILENT: copy from cauldron for updates
1 diff -up hplip-3.11.7/prnt/hpijs/hpcupsfax.cpp.CVE-2011-2722 hplip-3.11.7/prnt/hpijs/hpcupsfax.cpp
2 --- hplip-3.11.7/prnt/hpijs/hpcupsfax.cpp.CVE-2011-2722 2011-07-29 10:21:37.404874641 +0100
3 +++ hplip-3.11.7/prnt/hpijs/hpcupsfax.cpp 2011-07-29 10:28:10.071298117 +0100
4 @@ -625,8 +625,15 @@ int send_data_to_stdout(int fromFD)
5 fp = NULL;
6 if (iLogLevel & SAVE_PCL_FILE)
7 {
8 - fp = fopen ("/tmp/hpcupsfax.out", "w");
9 - system ("chmod 666 /tmp/hpcupsfax.out");
10 + int fd;
11 +
12 + unlink ("/tmp/hpcupsfax.out");
13 + fd = open ("/tmp/hpcupsfax.out", O_WRONLY | O_CREAT | O_EXCL,
14 + S_IRUSR | S_IWUSR | S_IRGRP);
15 + if (fd != -1)
16 + {
17 + fp = fdopen (fd, "w");
18 + }
19 }
20
21 while ((len = read (fromFD, pTmp, iSize)) > 0)

  ViewVC Help
Powered by ViewVC 1.1.30