summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-07-20 19:21:40 +0000
committergreen <green@FreeBSD.org>2000-07-20 19:21:40 +0000
commit1ab6aa1440acc1591f4cb7abaecf71916469bb80 (patch)
tree596fcb9ea132bb3b32d22ca4e9276905cc7e5780 /bin
parent493ee2169c383ed7c6698c67760ab7cc2469a208 (diff)
downloadFreeBSD-src-1ab6aa1440acc1591f4cb7abaecf71916469bb80.zip
FreeBSD-src-1ab6aa1440acc1591f4cb7abaecf71916469bb80.tar.gz
Make the comment regarding ftruncate() correct.
Diffstat (limited to 'bin')
-rw-r--r--bin/dd/dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 2ce90df..a7b8c66 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -169,8 +169,8 @@ setup()
pos_out();
/*
- * Truncate the output file; ignore errors because it fails on some
- * kinds of output files, tapes, for example.
+ * Truncate the output file. If it fails on a type of output file
+ * that it should _not_ fail on, error out.
*/
if ((ddflags & (C_OF | C_SEEK | C_NOTRUNC)) == (C_OF | C_SEEK) &&
out.flags & ISTRUNC)
OpenPOWER on IntegriCloud