create temporary test ext2 image in TMPDIR and not in CWD
This commit is contained in:
parent
1000a033e8
commit
0a985948cf
1 changed files with 5 additions and 2 deletions
|
@ -4611,8 +4611,11 @@ sub main() {
|
|||
$format = 'ext2';
|
||||
# check if the installed version of genext2fs supports tarballs on
|
||||
# stdin
|
||||
(undef, my $filename)
|
||||
= tempfile("mmdebstrap.ext2.XXXXXXXXXXXX", OPEN => 0);
|
||||
(undef, my $filename) = tempfile(
|
||||
"mmdebstrap.ext2.XXXXXXXXXXXX",
|
||||
OPEN => 0,
|
||||
TMPDIR => 1
|
||||
);
|
||||
open my $fh, '|-', 'genext2fs', '-B', '1024', '-b', '8', '-N',
|
||||
'11', '-a', '-', $filename // error "failed to fork(): $!";
|
||||
# write 10240 null-bytes to genext2fs -- this represents an empty
|
||||
|
|
Loading…
Reference in a new issue