bin/36757: which(1) ought to append @ if result is symlink

edwin at FreeBSD.org edwin at FreeBSD.org
Sun Aug 10 08:37:08 UTC 2008


Synopsis: which(1) ought to append @ if result is symlink

State-Changed-From-To: open->closed
State-Changed-By: edwin
State-Changed-When: Sun Aug 10 08:32:53 UTC 2008
State-Changed-Why: 
This is a very dangerous addition to the output.

Normally which(1) is used to determine if there is a program file
with that name in the users $PATH, to know if the program is there
and know the full path. By adding this character, suddenly the
program file returned doesn't exist anymore despite that the program
file does exist.

I'm sorry but this shouldn't be done.

http://www.freebsd.org/cgi/query-pr.cgi?pr=36757


More information about the freebsd-bugs mailing list