On Sat, Jan 01, 2011 at 08:30:40PM +0100, Harald Dunkel wrote:
> Here is the debug output:
[...]
> If I set PATH to "/usr/bin:/bin" then it works. Using "/usr/bin:/bin:."
> it doesn't (note the dot).
Thanks, I can reproduce it now.
This happens if and only if:
* the manual page is executable
* it is in a directory on $PATH
* that directory has no manpath defined in the configuration file
* that directory has no ../man, man, ../share/man, or share/man
subdirectories
In short, you can avoid it by making the manual page non-executable at
the point when dh_installman runs (e.g. by fixing the upstream source to
use 'install -m644' for the manual page), or of course by removing '.'
from your $PATH (having it there is inadvisable anyway since it means
that if your current directory is untrusted and you mistype a command
then you may execute untrusted code).
Still, I suspect that upstream Makefiles that install manual pages
executable are not entirely rare - they would of course be fixed up by
dh_fixperms later in most Debian source packages - and that it's not
desperately unusual for people to have the current directory in $PATH,
so I do think this is worth fixing for squeeze. I've fixed it upstream
and am in the process of backporting it to experimental and unstable.
> I would suggest to reassign this bug report to man-db. I have version
> 2.5.7-7 installed.
Joey already reassigned it - that's how I saw it.
Thanks,
--
Colin Watson [[email protected]]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]