Summary: | rotatelogs with getopt and setuid | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Sven Goldt <goldt> |
Component: | support | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | ASSIGNED --- | ||
Severity: | enhancement | Keywords: | PatchAvailable |
Priority: | P3 | ||
Version: | 2.0.48 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
more features for rotatelogs and using getopt.
New patch with apr_getopt instead of getopt and #ifdef APR_HAS_USER Sorry. Don't know how to remove the other attachement. apr_getopt is not quite compatble to getopt so additional error checkings included. |
Description
Sven Goldt
2004-02-26 15:24:45 UTC
Created attachment 10569 [details]
more features for rotatelogs and using getopt.
Created attachment 10585 [details]
New patch with apr_getopt instead of getopt and #ifdef APR_HAS_USER
Created attachment 10586 [details]
Sorry. Don't know how to remove the other attachement. apr_getopt is not quite compatble to getopt so additional error checkings included.
Well, i don't want to add a new patch for this... i think i don't see the deeper sense in apt_getlog. You can fool it very easy. So please as another check use if (argc < 3) instead of if (argc == 1) to display usage instead of starting. If you run this patched rotatelog with just a dash '-' as option it will not recognize it as a wrong option ! |