mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3:tests: let modprinter.pl use $TMPDIR
We should avoid using /tmp in selftest Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 23 13:53:13 UTC 2024 on atb-devel-224
This commit is contained in:
parent
92ea6b00e7
commit
34c586680e
@ -122,7 +122,11 @@ while (<CONFIGFILE>) {
|
||||
}
|
||||
}
|
||||
if ($opt_add) {
|
||||
print CONFIGFILE_NEW "[$share_name]\n\tprintable = yes\n\tpath = /tmp\n";
|
||||
my $tmpdir = "/tmp";
|
||||
if (defined($ENV{TMPDIR})) {
|
||||
$tmpdir = $ENV{TMPDIR};
|
||||
}
|
||||
print CONFIGFILE_NEW "[$share_name]\n\tprintable = yes\n\tpath = $tmpdir\n";
|
||||
}
|
||||
close (CONFIGFILE);
|
||||
close (CONFIGFILE_NEW);
|
||||
|
Loading…
x
Reference in New Issue
Block a user