Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-09 22:21:44 +0400
committerEric Andersen <andersen@codepoet.org>2000-10-09 22:21:44 +0400
commit7a86e61a54f75c6c457be177fb20f6dde27c06d3 (patch)
treee307b6cec6e7143fd03604aa03384001751ddb33 /utility.c
parent62f987e95f497a21bc1455153dd156aa12718574 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 9a303751d..11ade982b 100644
--- a/utility.c
+++ b/utility.c
@@ -1721,7 +1721,7 @@ void xregcomp(regex_t *preg, const char *regex, int cflags)
}
#endif
-#if defined BB_CAT || defined BB_HEAD
+#if defined BB_CAT || defined BB_HEAD || defined BB_WC
FILE *wfopen(const char *path, const char *mode)
{
FILE *fp;