/[gentoo-alt]/trunk/prefix/dev-libs/openssl/files/openssl-0.9.7c-tempfile.patch
Gentoo

Contents of /trunk/prefix/dev-libs/openssl/files/openssl-0.9.7c-tempfile.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 920 - (show annotations) (download)
Tue Dec 13 20:55:14 2005 UTC (12 years, 7 months ago) by kito
File size: 2178 byte(s)
drop -overlay
1 diff -ur openssl-0.9.7c.orig/apps/der_chop openssl-0.9.7c/apps/der_chop
2 --- openssl-0.9.7c.orig/apps/der_chop 2003-09-30 14:38:15.000000000 +0200
3 +++ openssl-0.9.7c/apps/der_chop 2004-09-13 13:46:06.000000000 +0200
4 @@ -65,7 +65,7 @@
5 }
6 else
7 {
8 - $file="/tmp/a$$.DER";
9 + $file=`mktemp -t a$$.DER.XXXXXX` || die $!;
10 open(OUT,">$file") || die "unable to open $file:$!\n";
11 for (;;)
12 {
13 @@ -139,7 +139,7 @@
14 {
15 local($str)=@_;
16 local(*OUT,*IN,@a,$t,$d,$ret);
17 - local($file)="/tmp/b$$.DER";
18 + local($file)=`mktemp -t b$$.DER.XXXXXX` || die $!;
19 local(@ret);
20
21 open(OUT,">$file");
22 @@ -225,7 +225,7 @@
23 sub do_private_key
24 {
25 local($data,@struct)=@_;
26 - local($file)="/tmp/b$$.DER";
27 + local($file)=`mktemp -t b$$.DER.XXXXXX` || die $!;
28 local($off,$d,$hl,$len,$_,$b,@p,$s);
29
30 ($type)=($struct[4] =~ /OBJECT_IDENTIFIER :(.*)\s*$/);
31 @@ -260,7 +260,7 @@
32 sub do_certificate
33 {
34 local($data,@struct)=@_;
35 - local($file)="/tmp/b$$.DER";
36 + local($file)=`mktemp -t b$$.DER.XXXXXX` || die $!;
37 local($off,$d,$hl,$len,$_,$b,@p,$s);
38
39 ($off,$d,$hl,$len)=&parse_line($struct[2]);
40 diff -ur openssl-0.9.7c.orig/apps/der_chop.in openssl-0.9.7c/apps/der_chop.in
41 --- openssl-0.9.7c.orig/apps/der_chop.in 1999-05-26 00:31:49.000000000 +0200
42 +++ openssl-0.9.7c/apps/der_chop.in 2004-09-13 13:43:46.000000000 +0200
43 @@ -65,7 +65,7 @@
44 }
45 else
46 {
47 - $file="/tmp/a$$.DER";
48 + $file=`mktemp -t a$$.DER.XXXXXX` || die $!;
49 open(OUT,">$file") || die "unable to open $file:$!\n";
50 for (;;)
51 {
52 @@ -139,7 +139,7 @@
53 {
54 local($str)=@_;
55 local(*OUT,*IN,@a,$t,$d,$ret);
56 - local($file)="/tmp/b$$.DER";
57 + local($file)=`mktemp -t b$$.DER.XXXXXX` || die $!;
58 local(@ret);
59
60 open(OUT,">$file");
61 @@ -225,7 +225,7 @@
62 sub do_private_key
63 {
64 local($data,@struct)=@_;
65 - local($file)="/tmp/b$$.DER";
66 + local($file)=`mktemp -t b$$.DER.XXXXXX` || die $!;
67 local($off,$d,$hl,$len,$_,$b,@p,$s);
68
69 ($type)=($struct[4] =~ /OBJECT_IDENTIFIER :(.*)\s*$/);
70 @@ -260,7 +260,7 @@
71 sub do_certificate
72 {
73 local($data,@struct)=@_;
74 - local($file)="/tmp/b$$.DER";
75 + local($file)=`mktemp -t b$$.DER.XXXXXX` || die $!;
76 local($off,$d,$hl,$len,$_,$b,@p,$s);
77
78 ($off,$d,$hl,$len)=&parse_line($struct[2]);

  ViewVC Help
Powered by ViewVC 1.1.20