vdr/vdradmin/debian/patches 02_sectmpfiles.dpatch

Thomas Schmidt pkg-vdr-dvb-changes@lists.alioth.debian.org
Sun, 23 Jan 2005 22:51:50 +0000


Update of /cvsroot/pkg-vdr-dvb/vdr/vdradmin/debian/patches
In directory haydn:/tmp/cvs-serv23320/vdr/vdradmin/debian/patches

Modified Files:
	02_sectmpfiles.dpatch 
Log Message:
* and now the working version of the patch (i guess i should really start reading the perl book i got from the library of my university) ;-)

Index: 02_sectmpfiles.dpatch
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdradmin/debian/patches/02_sectmpfiles.dpatch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- 02_sectmpfiles.dpatch	23 Jan 2005 21:44:18 -0000	1.3
+++ 02_sectmpfiles.dpatch	23 Jan 2005 22:51:48 -0000	1.4
@@ -5,9 +5,9 @@
 ## DP: Use File::Temp to create temporary files in a secure way
 
 @DPATCH@
-diff -urNad vdradmin-0.96/vdradmind.pl /tmp/dpep.7yXDwT/vdradmin-0.96/vdradmind.pl
---- vdradmin-0.96/vdradmind.pl	2005-01-23 21:00:09.000000000 +0100
-+++ /tmp/dpep.7yXDwT/vdradmin-0.96/vdradmind.pl	2005-01-23 21:14:02.000000000 +0100
+diff -urNad vdradmin-0.96/vdradmind.pl /tmp/dpep.XpvTGE/vdradmin-0.96/vdradmind.pl
+--- vdradmin-0.96/vdradmind.pl	2005-01-23 23:43:03.000000000 +0100
++++ /tmp/dpep.XpvTGE/vdradmin-0.96/vdradmind.pl	2005-01-23 23:48:21.000000000 +0100
 @@ -32,12 +32,15 @@
  	unshift(@INC, $BASENAME . "lib/");
  }
@@ -41,11 +41,11 @@
 +  
 +	my $file;
 +
-+	if ($ENV{TEMPDIR} != "") {
++	if (! $ENV{TEMPDIR} == "") {
 +	   my $time = my_strftime("%s");
-+	   my $file = "$ENV{TEMPDIR}/$time.jpg";
++	   $file = "$ENV{TEMPDIR}/$time.jpg";
 +	} else {
-+	   my $file = "/tmp/vdr.jpg";
++	   $file = "/tmp/vdr.jpg";
 +	}
 +	
  	my $maxwidth = 768;