summaryrefslogtreecommitdiff
path: root/md5sum.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-12 17:02:35 +0000
committerMatt Kraai2000-07-12 17:02:35 +0000
commitbe84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch)
tree088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /md5sum.c
parente58771e73c0d8589a458ede4088f5ba70eff917b (diff)
downloadbusybox-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.zip
busybox-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.gz
Always report the applet name when doing error reporting.
Diffstat (limited to 'md5sum.c')
-rw-r--r--md5sum.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/md5sum.c b/md5sum.c
index f4a8b99..e6f1c86 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -708,13 +708,13 @@ static int md5_file(const char *filename,
} else {
fp = fopen(filename, OPENOPTS(binary));
if (fp == NULL) {
- errorMsg("md5sum: %s: %s\n", filename, strerror(errno));
+ errorMsg("%s: %s\n", filename, strerror(errno));
return FALSE;
}
}
if (md5_stream(fp, md5_result)) {
- errorMsg("md5sum: %s: %s\n", filename, strerror(errno));
+ errorMsg("%s: %s\n", filename, strerror(errno));
if (fp != stdin)
fclose(fp);
@@ -722,7 +722,7 @@ static int md5_file(const char *filename,
}
if (fp != stdin && fclose(fp) == EOF) {
- errorMsg("md5sum: %s: %s\n", filename, strerror(errno));
+ errorMsg("%s: %s\n", filename, strerror(errno));
return FALSE;
}
@@ -746,7 +746,7 @@ static int md5_check(const char *checkfile_name)
} else {
checkfile_stream = fopen(checkfile_name, "r");
if (checkfile_stream == NULL) {
- errorMsg("md5sum: %s: %s\n", checkfile_name, strerror(errno));
+ errorMsg("%s: %s\n", checkfile_name, strerror(errno));
return FALSE;
}
}