aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-07-20 19:21:40 +0000
committerBrian Feldman <green@FreeBSD.org>2000-07-20 19:21:40 +0000
commit5976ee7e318151153ac358917336b953c621c07e (patch)
treecfa2d5e2b500e1f7c797cf720167f200356e247b /bin/dd/dd.c
parent29ce1dd30219fcd89a1d673dd4d868a24faeb3d9 (diff)
downloadsrc-5976ee7e318151153ac358917336b953c621c07e.tar.gz
src-5976ee7e318151153ac358917336b953c621c07e.zip
Make the comment regarding ftruncate() correct.
Notes
Notes: svn path=/head/; revision=63688
Diffstat (limited to 'bin/dd/dd.c')
-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 2ce90df16efe..a7b8c66930b9 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)