FreeBSD Bugzilla – Attachment 19856 Details for
Bug 35182
APMD does not set close on exec for /dev/apm*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 810 bytes, created by
Daniel O'Connor
on 2002-02-21 13:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Daniel O'Connor
Created:
2002-02-21 13:10:00 UTC
Size:
810 bytes
patch
obsolete
>Index: apmd.c >=================================================================== >RCS file: /usr/CVS-Repository/src/usr.sbin/apmd/apmd.c,v >retrieving revision 1.3.2.1 >diff -u -r1.3.2.1 apmd.c >--- apmd.c 13 Aug 2001 17:30:30 -0000 1.3.2.1 >+++ apmd.c 21 Feb 2002 12:58:04 -0000 >@@ -683,8 +683,16 @@ > (void) err(1, "cannot open device file `%s'", APM_NORM_DEVICEFILE); > } > >+ if (fcntl(apmnorm_fd, F_SETFD, 1) == -1) { >+ (void) err(1, "cannot set close-on-exec flag for device file '%s'", APM_NORM_DEVICEFILE); >+ } >+ > if ((apmctl_fd = open(APM_CTL_DEVICEFILE, O_RDWR)) == -1) { > (void) err(1, "cannot open device file `%s'", APM_CTL_DEVICEFILE); >+ } >+ >+ if (fcntl(apmctl_fd, F_SETFD, 1) == -1) { >+ (void) err(1, "cannot set close-on-exec flag for device file '%s'", APM_CTL_DEVICEFILE); > } > > restart();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 35182
: 19856