Package: gnuplot / 5.0.5+dfsg1-6+deb9u1

14_strip_username_from_output.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Strip username from output
 Strip username from output to make it reproducible.
Author: Alexis Bienvenüe <pado@passoire.fr>

Index: gnuplot-5.0.5/term/post.trm
===================================================================
--- gnuplot-5.0.5.orig/term/post.trm
+++ gnuplot-5.0.5/term/post.trm
@@ -1644,7 +1644,6 @@ SDict begin [\n\
   /Title (%s)\n\
   /Subject (gnuplot plot)\n\
   /Creator (gnuplot %s patchlevel %s)\n\
-  /Author (%s)\n\
 %%  /Producer (gnuplot)\n\
 %%  /Keywords ()\n\
   /CreationDate (%s)\n\
@@ -1837,18 +1836,11 @@ end\n\
 
     /* HH: print pdf information interpreted by ghostscript/acrobat */
     {
-	char *username=getusername();
-	char *username2=PS_escape_string(username,"()\\");
 	char *outstr2=PS_escape_string(outstr,"()\\");
 	fprintf(gppsfile, psi3,
 		outstr2?outstr2:"",
-		gnuplot_version, gnuplot_patchlevel,
-		username2?username2:"", 
+		gnuplot_version, gnuplot_patchlevel, 
 		timedate);
-	if (username)
-	    free(username);
-	if (username2)
-	    free(username2);
 	if (outstr2)
 	    free(outstr2);
     }