aboutsummaryrefslogtreecommitdiff
path: root/libbb/wfopen.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-06 12:04:42 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-06 12:04:42 +0000
commitbfbc971f9f96861abd80b977fb86e2791541bea8 (patch)
tree7319cf070d58a3a27623432657cac8017be3cb9f /libbb/wfopen.c
parentb0a6478eefe3894d16a15f8a23908135e7c97aa7 (diff)
downloadbusybox-bfbc971f9f96861abd80b977fb86e2791541bea8.tar.gz
hush: print cd error to stderr; use fopen_or_warn in builtin_source;
prepare builtin_unset for function support libbb: do not clear errno in fopen_or_warn function old new delta builtin_unset 242 271 +29 fopen_or_warn 42 31 -11 builtin_cd 90 74 -16 builtin_source 89 72 -17 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 29/-44) Total: -15 bytes
Diffstat (limited to 'libbb/wfopen.c')
-rw-r--r--libbb/wfopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/wfopen.c b/libbb/wfopen.c
index 4c84b3ba9..1cb871ef5 100644
--- a/libbb/wfopen.c
+++ b/libbb/wfopen.c
@@ -14,7 +14,7 @@ FILE* FAST_FUNC fopen_or_warn(const char *path, const char *mode)
FILE *fp = fopen(path, mode);
if (!fp) {
bb_simple_perror_msg(path);
- errno = 0;
+ //errno = 0; /* why? */
}
return fp;
}