summaryrefslogtreecommitdiff
path: root/usr.bin/mkuzip
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2006-01-30 23:00:48 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2006-01-30 23:00:48 +0000
commitd72d8f53f54fc09bb1e135122b60e425c2f5ad4a (patch)
tree8f96219fbcaf54c7ee0643af212395c5c8c5d901 /usr.bin/mkuzip
parent1a0cc6b19e96487bea4b49d79335b0b58cac6930 (diff)
downloadsrc-test2-d72d8f53f54fc09bb1e135122b60e425c2f5ad4a.tar.gz
src-test2-d72d8f53f54fc09bb1e135122b60e425c2f5ad4a.zip
Notes
Diffstat (limited to 'usr.bin/mkuzip')
-rw-r--r--usr.bin/mkuzip/mkuzip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mkuzip/mkuzip.c b/usr.bin/mkuzip/mkuzip.c
index 2f770ffec37b..4cad2fb79fb4 100644
--- a/usr.bin/mkuzip/mkuzip.c
+++ b/usr.bin/mkuzip/mkuzip.c
@@ -123,7 +123,7 @@ int main(int argc, char **argv)
atexit(cleanup);
if (stat(iname, &sb) != 0) {
- err(1, "%s", iname);
+ err(1, "stat(%s)", iname);
/* Not reached */
}
hdr.nblocks = sb.st_size / hdr.blksz;
@@ -137,13 +137,13 @@ int main(int argc, char **argv)
fdr = open(iname, O_RDONLY);
if (fdr < 0) {
- err(1, "%s", iname);
+ err(1, "open(%s)", iname);
/* Not reached */
}
fdw = open(oname, O_WRONLY | O_TRUNC | O_CREAT,
S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
if (fdw < 0) {
- err(1, "%s", oname);
+ err(1, "open(%s)", oname);
/* Not reached */
}
cleanfile = oname;
@@ -185,7 +185,7 @@ int main(int argc, char **argv)
DEV_BSIZE);
}
if (write(fdw, obuf, destlen) < 0) {
- err(1, "%s", oname);
+ err(1, "write(%s)", oname);
/* Not reached */
}
toc[i] = htobe64(offset);
@@ -204,7 +204,7 @@ int main(int argc, char **argv)
/* Write headers into pre-allocated space */
lseek(fdw, 0, SEEK_SET);
if (writev(fdw, iov, 2) < 0) {
- err(1, "%s", oname);
+ err(1, "writev(%s)", oname);
/* Not reached */
}
cleanfile = NULL;