1. TZ86
  2. initscripts-fork

Commits

Dave Reisner  committed 4ac0e23

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>

  • Participants
  • Parent commits 1fa7b4b
  • Branches master

Comments (0)

Files changed (2)

File arch-tmpfiles

View file
 	fi
 
 	if [[ ! -e $path ]]; then
-		install -m"$mode" -o"$uid" -g"$gid" <(:) "$path"
+		install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
 	fi
 }
 
 		return
 	fi
 
-	install -m"$mode" -o"$uid" -g"$gid" <(:) "$path"
+	install -m"$mode" -o"$uid" -g"$gid" /dev/null "$path"
 }
 
 _d() {

File rc.shutdown

View file
 
 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