]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: make sc_dd_O_FLAGS more robust
authorBernhard Voelker <mail@bernhard-voelker.de>
Mon, 9 Feb 2015 07:19:01 +0000 (08:19 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Mon, 9 Feb 2015 09:42:10 +0000 (10:42 +0100)
commit99f76aec8a7e74f2e1622b74b1011fac6f677f4e
tree86f89bf8936a3c90eb21060be404cf3d586a3c7e
parentebb71efc1e74076017f3a983b4cb4a3311925d14
maint: make sc_dd_O_FLAGS more robust

The construct "diff ... || diff=1 || diff=" does not set the variable
in all cases.  This could be triggered with:

  $ env make diff=1 make sc_dd_O_FLAGS
  dd_O_FLAGS
  maint.mk: ./src/dd.c has inconsistent O_ flag lists
  cfg.mk:59: recipe for target 'sc_dd_O_FLAGS' failed
  make: *** [sc_dd_O_FLAGS] Error 1

* cfg.mk (sc_dd_O_FLAGS): Remember $? of the diff command directly
and check its value later rather than using the  above mentioned
mapping.
cfg.mk