From 71e960e95f880e02cb735faa14d28565b6312f7c Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 10 Oct 2011 16:18:15 -0400 Subject: mkinitcpio: avoid stomping on TMPDIR from the environment cc36db45 was a bit too strict about localizing variables and blew out TMPDIR, which might be a legit variable sourced from the calling environment. Restore this behavior with a bit of refactoring, and additionally add in a check to make sure the temporary directory is writeable before proceeding. Fixes FS#26373. Signed-off-by: Dave Reisner --- mkinitcpio.8.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mkinitcpio.8.txt') diff --git a/mkinitcpio.8.txt b/mkinitcpio.8.txt index f963dac..79c4bb4 100644 --- a/mkinitcpio.8.txt +++ b/mkinitcpio.8.txt @@ -72,7 +72,8 @@ Options *-t* 'tmpdir':: Use 'tmpdir' as the temporary build directory instead of /tmp. 'tmpdir' - must exist. + must exist. The 'TMPDIR' environment variable is also honored to set this + location, but the command line option will take precedence. *-v*:: Verbose output. Outputs more information about what's happening during -- cgit v1.2.3-24-g4f1b