From owner-freebsd-bugs Fri Aug 9 10:20:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA25342 for bugs-outgoing; Fri, 9 Aug 1996 10:20:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA25327; Fri, 9 Aug 1996 10:20:03 -0700 (PDT) Resent-Date: Fri, 9 Aug 1996 10:20:03 -0700 (PDT) Resent-Message-Id: <199608091720.KAA25327@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, zgabor@code.hu Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA24895 for ; Fri, 9 Aug 1996 10:10:53 -0700 (PDT) Received: by mail.EUnet.hu, id TAA22415; Fri, 9 Aug 1996 19:10:50 +0200 Received: from zg.CoDe.hu by CoDe.CoDe.hu (TAA03924); Fri, 9 Aug 1996 19:00:09 GMT Received: (from zgabor@localhost) by zg.CoDe.hu (8.6.12/8.6.12) id TAA01293; Fri, 9 Aug 1996 19:29:23 +0200 Message-Id: <199608091729.TAA01293@zg.CoDe.hu> Date: Fri, 9 Aug 1996 19:29:23 +0200 From: Zahemszky Gabor Reply-To: zgabor@code.hu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1487: bug in exec(2) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: