Univention Bugzilla – Attachment 4126 Details for
Bug 25958
Listener Performance in großen Umgebungen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Korrekter Aufruf von open(), nötig für D_FORTIFY
open.patch (text/plain), 761 bytes, created by
Moritz Muehlenhoff
on 2012-01-30 16:23:27 CET
(
hide
)
Description:
Korrekter Aufruf von open(), nötig für D_FORTIFY
Filename:
MIME Type:
Creator:
Moritz Muehlenhoff
Created:
2012-01-30 16:23:27 CET
Size:
761 bytes
patch
obsolete
>--- univention-directory-listener.orig/src/main.c 2011-12-23 01:42:45.000000000 +0100 >+++ univention-directory-listener/src/main.c 2011-12-23 01:41:59.000000000 +0100 >@@ -95,7 +95,7 @@ > int null, log; > int fd; > >- fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL); >+ fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, S_IRWXU); > if (fd < 0) { > univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "pidfile %s exists, aborting...", pidfile); > return 1; >@@ -119,7 +119,7 @@ > } > dup2(null, STDIN_FILENO); > dup2(null, STDOUT_FILENO); >- if ((log=open("/var/log/univention/listener.log", O_WRONLY | O_CREAT | O_APPEND)) == -1) >+ if ((log=open("/var/log/univention/listener.log", O_WRONLY | O_CREAT | O_APPEND, S_IRWXU)) == -1) > log=null; > dup2(log, STDERR_FILENO); >
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 25958
:
4122
|
4123
|
4124
|
4125
| 4126