Date: Fri, 9 Aug 1996 19:29:23 +0200 From: Zahemszky Gabor <zgabor@code.hu> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/1487: bug in exec(2) Message-ID: <199608091729.TAA01293@zg.CoDe.hu> Resent-Message-ID: <199608091720.KAA25327@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1487 >Category: kern >Synopsis: bug in exec(2) >Confidential: yes >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 9 10:20:02 PDT 1996 >Last-Modified: >Originator: Zahemszky Gabor >Organization: >Release: FreeBSD 2.1.0-RELEASE i386 >Environment: 2.1R from Walnut Creek CD >Description: If there is a file, which named as a directory in the PATH, some programs, that use the exec... system call, failed >How-To-Repeat: $ export PATH=/root/bin:/bin:/usr/bin $ cd ~root $ rm bin ; rmdir bin ; touch bin $ rm /usr/share/man/cat1/error.1.gz $ man error # it has to be such a manual, which has to creat Formatting page, please wait...groff: couldn't exec troff: Not a directory groff: couldn't exec grotty: Not a directory Done $ rm /usr/share/man/cat1/error.gz.1 $ rm ~root/bin $ man error Formatting page, please wait ... (and the normal way, I get the manual page) $ If we try it as normal user, chsh/chpass/chfn exiting, too: (and maybe some other commands) $ chsh # or chfn or chpass commandname: vi: undefined error: 0 commandname: /etc/master.passwd: unchanged >Fix: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608091729.TAA01293>