[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#107826: can not create file through a dangling symlink
From: |
Roland McGrath |
Subject: |
Bug#107826: can not create file through a dangling symlink |
Date: |
Mon, 6 Aug 2001 17:23:35 -0400 (EDT) |
This behavior is implemented explicitly in libdiskfs/dir-lookup.c line 374:
/* Symlinks to nonexistent files aren't allowed to cause
creation, so clear the flag here. */
create = 0;
Try removing that line and see if everything works right.
I just checked the austin group draft 7 spec and though I didn't find
anything explicitly about this case off hand, it seems to specify the
creation behavior. That is how Linux and FreeBSD both behave, so we should
match.
In skimming a couple parts of the spec, I also noticed it now explicitly
says that a lookup of "" must fail. So we should change this too.
These things differed in traditional Unix behavior, and in BSD until fairly
recently, but the new specs on the horizon require everyone to match the
System V style behavior.
- Bug#107826: can not create file through a dangling symlink, Marcus Brinkmann, 2001/08/06
- Bug#107826: can not create file through a dangling symlink,
Roland McGrath <=
- Bug#107826: can not create file through a dangling symlink, Marcus Brinkmann, 2001/08/17
- Bug#107826: can not create file through a dangling symlink, Roland McGrath, 2001/08/17
- Bug#107826: can not create file through a dangling symlink, Niels Möller, 2001/08/19
- Bug#107826: can not create file through a dangling symlink, Roland McGrath, 2001/08/21
- Bug#107826: can not create file through a dangling symlink, Thomas Bushnell, BSG, 2001/08/21
- Bug#107826: can not create file through a dangling symlink, Roland McGrath, 2001/08/21
Bug#107826: can not create file through a dangling symlink, Thomas Bushnell, BSG, 2001/08/20