diff options
author | Jim Meyering <jim@meyering.net> | 1997-06-15 15:06:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-06-15 15:06:52 +0000 |
commit | 0dcca900cc34f8aa7fb6639b7b5873a7429388d0 (patch) | |
tree | 8fd37be3b9001535ce04d91c16386b86ed4825bd /lib | |
parent | ab029fd3e53587e79e847786628823e80ec9cf70 (diff) | |
download | coreutils-0dcca900cc34f8aa7fb6639b7b5873a7429388d0.tar.xz |
(full_write): Add comment regarding failure due to bug in
Linux Slackware 1.2.13 kernel.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/full-write.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/full-write.c b/lib/full-write.c index 46d030b95..1e80b0a8a 100644 --- a/lib/full-write.c +++ b/lib/full-write.c @@ -1,5 +1,5 @@ /* full-write.c -- an interface to write that retries after interrupts - Copyright (C) 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1997 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -48,6 +48,10 @@ full_write (desc, ptr, len) while (len > 0) { int written = write (desc, ptr, len); + /* FIXME: write on my slackware Linux 1.2.13 returns zero when + I try to write more data than there is room on a floppy disk. + This puts dd into an infinite loop. Reproduce with + dd if=/dev/zero of=/dev/fd0. */ if (written < 0) { #ifdef EINTR |