aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-26 17:05:18 -0400
committerTom Gundersen <teg@jklm.no>2011-08-03 14:47:02 +0200
commit4ac0e23b1813eebbd9cad148193801cf2ce3f67c (patch)
tree004c26e6caf58d0b9698ba8f06dec25143182877 /rc.shutdown
parent1fa7b4b453e96533ae1db3630031285e5fc302b3 (diff)
downloadinitscripts-4ac0e23b1813eebbd9cad148193801cf2ce3f67c.tar.xz
arch-tmpfiles: avoid subshell in creating empty files
install /dev/null as the new file instead of creating an empty file via a no-op process substitution. Signed-off-by: Dave Reisner <dreisner@archlinux.org> [tomegun: the commit also adds a similar fix to rc.shutdown] Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 72f2edd..d11aeee 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -27,7 +27,7 @@ run_hook shutdown_postkillall
stat_busy "Saving Random Seed"
RANDOM_SEED=/var/lib/misc/random-seed
- install -TDm 0600 <(:) $RANDOM_SEED
+ install -TDm 0600 /dev/null $RANDOM_SEED
POOL_FILE=/proc/sys/kernel/random/poolsize
if [[ -r $POOL_FILE ]]; then
read POOL_SIZE < $POOL_FILE