Ver código fonte

Use conservative paths to shell bins

Alois Mahdal 10 anos atrás
pai
commit
0c26d2e015
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      bin/mkexec

+ 2
- 2
bin/mkexec Ver arquivo

23
 
23
 
24
 my $bangs = {
24
 my $bangs = {
25
     pl   => `which perl`,
25
     pl   => `which perl`,
26
-    sh   => `which sh`,
26
+    sh   => '/bin/sh',
27
     py   => `which python`,
27
     py   => `which python`,
28
-    bash => `which bash`,
28
+    bash => '/bin/bash',
29
     sed  => `which sed`,
29
     sed  => `which sed`,
30
     bc   => `which bc`
30
     bc   => `which bc`
31
 };
31
 };