Re: pkg_info -g not working for unprivileged user + unreadable files

2011-02-07 Thread Julien Laffaye
On Mon, Feb 7, 2011 at 9:11 AM, Florent Thoumie wrote: > On Mon, Feb 7, 2011 at 7:52 AM, Doug Barton wrote: >> flz, >> >> In r206043 you converted fexists() in src/lib/libpkg/file.c to use open() >> instead of lstat(). Unfortunately this has the side effect of breaking >> 'pkg_info -g' for unpriv

Re: pkg_info -g not working for unprivileged user + unreadable files

2011-02-07 Thread Florent Thoumie
On Mon, Feb 7, 2011 at 7:52 AM, Doug Barton wrote: > flz, > > In r206043 you converted fexists() in src/lib/libpkg/file.c to use open() > instead of lstat(). Unfortunately this has the side effect of breaking > 'pkg_info -g' for unprivileged users with files that have no +r bits. For > example: >

pkg_info -g not working for unprivileged user + unreadable files

2011-02-06 Thread Doug Barton
flz, In r206043 you converted fexists() in src/lib/libpkg/file.c to use open() instead of lstat(). Unfortunately this has the side effect of breaking 'pkg_info -g' for unprivileged users with files that have no +r bits. For example: pkg_info -g sudo-1.7.4.6 Information for sudo-1.7.4.6: Mis