diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-26 17:05:18 -0400 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-08-03 14:47:02 +0200 |
commit | 4ac0e23b1813eebbd9cad148193801cf2ce3f67c (patch) | |
tree | 004c26e6caf58d0b9698ba8f06dec25143182877 /arch-tmpfiles | |
parent | 1fa7b4b453e96533ae1db3630031285e5fc302b3 (diff) | |
download | initscripts-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 'arch-tmpfiles')
-rwxr-xr-x | arch-tmpfiles | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch-tmpfiles b/arch-tmpfiles index c646ecd..f133a40 100755 --- a/arch-tmpfiles +++ b/arch-tmpfiles @@ -49,7 +49,7 @@ _f() { fi if [[ ! -e $path ]]; then - install -m"$mode" -o"$uid" -g"$gid" <(:) "$path" + install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path" fi } @@ -64,7 +64,7 @@ _F() { return fi - install -m"$mode" -o"$uid" -g"$gid" <(:) "$path" + install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path" } _d() { |