summaryrefslogtreecommitdiffstats
path: root/mkinitcpio.8.txt
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-10 22:18:15 +0200
committerDave Reisner <dreisner@archlinux.org>2011-10-16 23:43:16 +0200
commit71e960e95f880e02cb735faa14d28565b6312f7c (patch)
treeebabc454eb11c28607cbfbad611d3537f6fef4f5 /mkinitcpio.8.txt
parent5d635b6d9553cf266d3e15e450feff5337fbc28a (diff)
downloadmkinitcpio-71e960e95f880e02cb735faa14d28565b6312f7c.tar.gz
mkinitcpio-71e960e95f880e02cb735faa14d28565b6312f7c.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'mkinitcpio.8.txt')
-rw-r--r--mkinitcpio.8.txt3
1 files changed, 2 insertions, 1 deletions
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