summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-12-26 12:00:18 +0100
committerJim Meyering <meyering@redhat.com>2008-12-26 12:08:51 +0100
commit0c65638b0fe521a47e72f318edfb12c5b3b850f5 (patch)
tree86c0cbef89f4047592ef382a15ad9f334909d10b /src
parent5c065bb0cb979dff21c474c0ff45b0c9013791d4 (diff)
downloadcoreutils-0c65638b0fe521a47e72f318edfb12c5b3b850f5.tar.xz
maint: ensure dd's computation of O_FULLBLOCK uses all O_ symbol names
* src/dd.c (O_FULLBLOCK): Use a more uniform initializer, that makes it easier to extract all O_ symbol names. * maint.mk (syntax-check-rules): Also search for sc_ rules in cfg.mk. (sc_root_tests): Ensure that this rule sets $diff. * cfg.mk (sc_dd_O_FLAGS): New rule.
Diffstat (limited to 'src')
-rw-r--r--src/dd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dd.c b/src/dd.c
index 763961261..d683c5d67 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -279,7 +279,8 @@ enum
MAX (O_NOFOLLOW,
MAX (O_NOLINKS,
MAX (O_NONBLOCK,
- MAX (O_SYNC, O_TEXT))))))))))))) << 1)
+ MAX (O_SYNC,
+ MAX (O_TEXT, 0)))))))))))))) << 1)
};
/* Ensure that we didn't shift it off the end. */