From owner-freebsd-commit Sun Jul 30 17:36:12 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id RAA29645 for commit-outgoing; Sun, 30 Jul 1995 17:36:12 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id RAA29631 for cvs-sys-outgoing; Sun, 30 Jul 1995 17:36:04 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id RAA29621 ; Sun, 30 Jul 1995 17:35:59 -0700 Date: Sun, 30 Jul 1995 17:35:59 -0700 From: Bruce Evans Message-Id: <199507310035.RAA29621@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/sys namei.h Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/07/30 17:35:58 Modified: sys/kern vfs_lookup.c vfs_syscalls.c sys/sys namei.h Log: Ignore trailing slashes in pathnames that "refer to a directory", as is required to be POSIXLY_CORRECT and "right". I interpret "referring to a directory" as being a directory or becoming a directory. E.g., the trailing slashes in mkdir("/nonesuch/"), rename("/tmp", /nonesuch/") and link("/tmp", "/root_can_like_dirs/") are ignored because the target will become a directory if the syscall succeeds. A trailing slash on a symlink causes the symlink to be followed (this is a bug if the symlink doesn't point to a directory; fix later).