aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-02-22 17:38:21 +0100
committerKenton Groombridge <concord@gentoo.org>2024-03-01 12:05:39 -0500
commit2dce7975e36e015abbe53d9749d5db5344d79d34 (patch)
treef9335a4ca19fe34b24bbed1151caa267a44be856 /Rules.modular
parentRules.monolithic: pre-compile fcontexts on install (diff)
downloadhardened-refpolicy-2dce7975e36e015abbe53d9749d5db5344d79d34.tar.gz
hardened-refpolicy-2dce7975e36e015abbe53d9749d5db5344d79d34.tar.bz2
hardened-refpolicy-2dce7975e36e015abbe53d9749d5db5344d79d34.zip
Rules.modular: use temporary file to not ignore error
Save the result of the m4 command into a temporary file and split the commands, to avoid ignoring failures of the first command. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'Rules.modular')
-rw-r--r--Rules.modular4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules.modular b/Rules.modular
index f7ee2c11..c731ea01 100644
--- a/Rules.modular
+++ b/Rules.modular
@@ -119,8 +119,8 @@ $(tmpdir)/seusers: $(seusers)
$(users_extra): $(m4support) $(user_files)
@test -d $(tmpdir) || mkdir -p $(tmpdir)
- $(verbose) $(M4) $(M4PARAM) -D users_extra $^ | \
- $(SED) -r -n -e 's/^[[:blank:]]*//g' -e '/^user/p' > $@
+ $(verbose) $(M4) $(M4PARAM) -D users_extra $^ > $(tmpdir)/$(@F).tmp
+ $(verbose) $(SED) -r -n -e 's/^[[:blank:]]*//g' -e '/^user/p' $(tmpdir)/$(@F).tmp > $@
########################################
#