This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: useless file accesses (2)


Bruno Haible <haible@ilog.fr> writes:

> The intended test was probably a stat && S_ISDIR test, but even this
> one is not necessary because the first action of read_conf_file is to open a
> file in this directory and return silently if it doesn't exist.

The intend was to do some security checking.  But this code never made
it (so far).  I've applied your patch for now.  Maybe it'll be added
back in a correct form some day.

Thanks,

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]