From owner-freebsd-bugs Wed May 10 03:38:38 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA16503 for bugs-outgoing; Wed, 10 May 1995 03:38:38 -0700 Received: from mail.Germany.EU.net (mail.Germany.EU.net [192.76.144.65]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA16496 for ; Wed, 10 May 1995 03:38:32 -0700 From: Bernard.Steiner@Germany.EU.net Received: by mail.Germany.EU.net with ESMTP (8.6.5:29/EUnetD-2.5.1.f) via EUnet id MAA00943; Wed, 10 May 1995 12:40:13 +0200 Message-Id: <199505101040.MAA18416@qwerty.Germany.EU.net> Received: from localhost.Germany.EU.net by qwerty.Germany.EU.net with SMTP (8.6.4/EUnetDlan-1.14-1.2.0) via EUnet for [mail.germany.eu.net] id MAA18416; Wed, 10 May 1995 12:40:11 +0200 To: terry@cs.weber.edu (Terry Lambert) cc: freebsd-bugs@FreeBSD.org Subject: Re: strange symlinks In-reply-to: Your message of Tue, 09 May 1995 16:14:48 MDT. <9505092214.AA19830@cs.weber.edu> Date: Wed, 10 May 1995 12:39:28 +0200 Sender: bugs-owner@FreeBSD.org Precedence: bulk > The next one may be a general 4.4 problem... > assumption: /tmp/foo does not exist, /tmp/bar is a symlink to /tmp/foo. > chdir("/tmp/bar") fails with ENOENT, but at the same time > mkdir("/tmp/bar", 0x777) fails with EEXIST. I think this is a generic result of the path component item evaluation order. I guess the only thing to say is that "according to the code, this is correct behaviour" 8-). Yeah. There's more to this, actually. If you do an open(O_CREAT) (on SunOS4.1.3; haven't got the FreeBSD box with me now) you get a normal open file that the symlink points to. IN the light of the mkdir, this is a wee bit inconsistent, isn't it ? > Third, whatever happened to the fchdir() syscall that I vaguely remember > having had in (at least) 386BSD0.1 ? Sorry - please delete all my ranting on this one. Bernard