[BusyBox-cvs] [BusyBox 0000198]: cat does not check the return value of close(2)

bugs at busybox.net bugs at busybox.net
Sat Apr 16 05:05:14 UTC 2005


A NOTE has been added to this issue.
======================================================================
<http://busybox.net/bugs/view.php?id=198> 
======================================================================
Reported By:                farnerup
Assigned To:                BusyBox
======================================================================
Project:                    BusyBox
Issue ID:                   198
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
======================================================================
Date Submitted:             03-30-2005 05:13 PST
Last Modified:              04-15-2005 22:05 PDT
======================================================================
Summary:                    cat does not check the return value of close(2)
Description: 
cat (and possibly other programs) does not call close(2) explicitly on
stdout, and thus doesn't check if it succeded or not. This is important
for some device drivers and, I imagine, some filesystems.

# cp test /dev/foo && echo ok
cp: unable to close `/dev/foo': Input/output error
# cat test > /dev/foo && echo ok
ok

======================================================================

----------------------------------------------------------------------
 vapier - 04-15-05 22:05 
----------------------------------------------------------------------
this is really just Bug 107 ?

Issue History
Date Modified  Username       Field                    Change              
======================================================================
03-30-05 05:13 farnerup       New Issue                                    
04-15-05 22:05 vapier         Note Added: 0000156                          
======================================================================




More information about the busybox-cvs mailing list