www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Changkuk Yoo <changkuk...@hanmail.net>
Subject apache-api/6473: function parameter has no meaning.
Date Mon, 28 Aug 2000 08:43:09 GMT

>Number:         6473
>Category:       apache-api
>Synopsis:       function parameter has no meaning.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          mistaken
>Submitter-Id:   apache
>Arrival-Date:   Mon Aug 28 01:50:01 PDT 2000
>Originator:     changkukyoo@hanmail.net
>Release:        2.0a6
SunOS 5.6. compiler : gcc version 2.8.1
I found the function in main/buff.c .
ap_bopenf() has parameter (apr_pool_t *a, const char *name, int flg, int mode).
But it doesn't use 'mode' when open file.
here is code...

rv = apr_open(&file, name, flg, 0, a);

so, whenever the file is created, the file has invalid mode such as '0000'.
You can note function in apache/src/main/buff.c
--- before modify ---
rv = apr_open(&file, name, flg, 0, a);
--- after modify ---
rv = apr_open(&file, name, flg, mode, a);
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message