Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 160646 Details for
Bug 232084
net-misc/dhcdbd-3.0 - open with O_CREAT in second argument needs 3 arguments in dhcdbd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix O_CREAT bug in dhcdbd
dhcdbd-open_missing_mode.patch (text/plain), 721 bytes, created by
Magnus Granberg
on 2008-07-17 16:07:21 UTC
(
hide
)
Description:
Fix O_CREAT bug in dhcdbd
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2008-07-17 16:07:21 UTC
Size:
721 bytes
patch
obsolete
>diff -Nru /var/tmp/portage/net-misc/dhcdbd-3.0/work/dhcdbd-3.0/src/dhcdbd.c /root/hardened/dhcdbd-3.0/src/dhcdbd.c >--- /var/tmp/portage/net-misc/dhcdbd-3.0/work/dhcdbd-3.0/src/dhcdbd.c 2008-06-17 00:10:30.000000000 +0200 >+++ /root/hardened/dhcdbd-3.0/src/dhcdbd.c 2008-06-17 00:14:14.000000000 +0200 >@@ -2813,7 +2813,7 @@ > if (dhcdbd_daemonize && (daemon (0, 0) == -1)) > return errno; > unlink (DHCDBD_PID_FILE); >- if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT)) == -1) >+ if ((fd = open (DHCDBD_PID_FILE, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) == -1) > exit (errno); > l = sprintf (path, "%u", getpid ()); > l = write (fd, path, l);
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 232084
: 160646 |
181515