aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygmagic
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-01-22 03:48:16 +0000
committerChristopher Faylor <me@cgf.cx>2002-01-22 03:48:16 +0000
commitaed69a5b0dbacbddc1018b173f8420e40389004f (patch)
tree830dc01a64c2be5c2b46819a17d38ce4b6487191 /winsup/cygwin/cygmagic
parent2c2473bcac5304a191fe3a5e3fe2893569d579ad (diff)
downloadnewlib-aed69a5b0dbacbddc1018b173f8420e40389004f.zip
newlib-aed69a5b0dbacbddc1018b173f8420e40389004f.tar.gz
newlib-aed69a5b0dbacbddc1018b173f8420e40389004f.tar.bz2
* cygmagic: Suppress error output when figuring out if sum takes an option.
Diffstat (limited to 'winsup/cygwin/cygmagic')
-rwxr-xr-xwinsup/cygwin/cygmagic2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygmagic b/winsup/cygwin/cygmagic
index 1605362..3875938 100755
--- a/winsup/cygwin/cygmagic
+++ b/winsup/cygwin/cygmagic
@@ -17,7 +17,7 @@ cat <<EOF > $file_magic
/* autogenerated - do not edit */
#include "$file"
EOF
-if sum -r /dev/null; then
+if sum -r /dev/null >/dev/null 2>&1; then
sumit(){ sum -r $*; }
else
sumit(){ sum $*; }