commit:     2dce7975e36e015abbe53d9749d5db5344d79d34
Author:     Christian Göttsche <cgzones <AT> googlemail <DOT> com>
AuthorDate: Thu Feb 22 16:38:21 2024 +0000
Commit:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Fri Mar  1 17:05:39 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=2dce7975

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 <AT> googlemail.com>
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>

 Rules.modular | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Rules.modular b/Rules.modular
index f7ee2c11f..c731ea01d 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 > $@
 
 ########################################
 #

Reply via email to