diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-10-09 18:21:44 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-10-09 18:21:44 +0000 |
commit | 7a86e61a54f75c6c457be177fb20f6dde27c06d3 (patch) | |
tree | e307b6cec6e7143fd03604aa03384001751ddb33 /utility.c | |
parent | 62f987e95f497a21bc1455153dd156aa12718574 (diff) | |
download | busybox-w32-7a86e61a54f75c6c457be177fb20f6dde27c06d3.tar.gz busybox-w32-7a86e61a54f75c6c457be177fb20f6dde27c06d3.tar.bz2 busybox-w32-7a86e61a54f75c6c457be177fb20f6dde27c06d3.zip |
Patch from Matt Kraai so wc will return a proper error code
when failing to open a file, and will not use file when it
didn't open the file.
-Erik
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1721,7 +1721,7 @@ void xregcomp(regex_t *preg, const char *regex, int cflags) | |||
1721 | } | 1721 | } |
1722 | #endif | 1722 | #endif |
1723 | 1723 | ||
1724 | #if defined BB_CAT || defined BB_HEAD | 1724 | #if defined BB_CAT || defined BB_HEAD || defined BB_WC |
1725 | FILE *wfopen(const char *path, const char *mode) | 1725 | FILE *wfopen(const char *path, const char *mode) |
1726 | { | 1726 | { |
1727 | FILE *fp; | 1727 | FILE *fp; |