Bug 21751

Summary: [libcam] [patch] libcam's cam_real_open_device() may lose fds on error condition
Product: Base System Reporter: dockes <dockes>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dockes 2000-10-04 15:10:01 UTC
In libcam's camlib.c, if one of the 2 last ioctl calls in 
cam_real_open_device() fails (probably a very unlikely condition, but 
the fix is simple enough),the routine will return an error without 
closing an open descriptor.
Comment 1 Kenneth D. Merry freebsd_committer freebsd_triage 2000-10-04 17:32:51 UTC
Responsible Changed
From-To: freebsd-bugs->ken

My code.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2007-08-02 01:39:02 UTC
Responsible Changed
From-To: ken->freebsd-bugs

With permission, reassign away from inactive committer.
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2008-02-17 19:28:14 UTC
State Changed
From-To: open->closed

Close: fixed in revision 1.9 of lib/libcam/camlib.c more than 6 years ago. 
Thanks for the submission.