git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
143f8a4
)
Fix support for `mock --uniqueext'.
author
jkratoch
<>
Sat, 3 Oct 2009 17:45:41 +0000
(17:45 +0000)
committer
jkratoch
<>
Sat, 3 Oct 2009 17:45:41 +0000
(17:45 +0000)
bin/mockrun
patch
|
blob
|
history
diff --git
a/bin/mockrun
b/bin/mockrun
index
41e1e45
..
8163f24
100755
(executable)
--- a/
bin/mockrun
+++ b/
bin/mockrun
@@
-23,7
+23,7
@@
$user=($user=~/$safe/)[0];
# my $mock="/usr/bin/mock";
# my @l=(qw(mock -r),$_,qw(--shell));
my $mock="/usr/bin/setarch";
# my $mock="/usr/bin/mock";
# my @l=(qw(mock -r),$_,qw(--shell));
my $mock="/usr/bin/setarch";
-my $arch=(/-(
[^-]+)$/)[0]
;
+my $arch=(/-(
i386|x86_64)(?:-.*)?$/)[0] or die
;
my @l=("setarch",$arch,"/usr/sbin/chroot",$rpath);
# Untaint @ARGV->@args.
my @l=("setarch",$arch,"/usr/sbin/chroot",$rpath);
# Untaint @ARGV->@args.