tags 467614 patch
thanks
On 26/02/2008, Michael Meskes <[EMAIL PROTECTED]> wrote:
> Package: svn-buildpackage
> Version: 0.6.23
> Severity: normal
>
> In function tmpdirexec svn-inject tries to check whether /tmp allows
> execution of files by creating a temp file there, setting it to
> executable and executing it. However, on my system this file does not
> work at all. Here it is:
>
> [EMAIL PROTECTED]:~$ cat /tmp/tmp.kSTGlk1774
> #!/bin/sh\necho ok\n
>
> Unsurprisingly upon execution I get this error:
>
> [EMAIL PROTECTED]:~$ (LC_ALL=C; /tmp/tmp.kSTGlk1774)
> bash: /tmp/tmp.kSTGlk1774: /bin/sh\necho: bad interpreter: No such file or
> directory
Please try the attached patch, see if it works and report back. It should work.
--
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
Index: svn-inject
===================================================================
--- svn-inject (revision 8206)
+++ svn-inject (working copy)
@@ -105,7 +105,7 @@
my $testfile=`mktemp`;
chomp $testfile;
open (O, ">$testfile");
- print O '#!/bin/sh\necho ok\n';
+ print O "#!/bin/sh\necho ok\n";
close O;
print "Checking if the default \$TMPDIR allows execution...\n" ;
if (system ("chmod", "+x", "$testfile") and (`$testfile`) =~ /ok/ ) {