[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir when target exists and is a broken symlink
From: |
Paul Eggert |
Subject: |
Re: mkdir when target exists and is a broken symlink |
Date: |
Thu, 19 May 2005 01:01:38 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
address@hidden (Eric Blake) writes:
> POSIX requires that touch do the equivalent of calling creat() if
> the file does not exist, then call utime() whether or not creat()
> was called. A broken symlink exists,
Not unless the program is specifically mentioned by POSIX
as one that does not follow symlinks. 'touch' is not
such a program, so it follows symlinks, so it considers
the file to not exist, so it issues creat() and the
creat() follows the symlink to create the file.
- mkdir when target exists and is a broken symlink, Avis, Ed, 2005/05/17
- Re: mkdir when target exists and is a broken symlink, Eric Blake, 2005/05/17
- Re: mkdir when target exists and is a broken symlink,
Paul Eggert <=
- RE: mkdir when target exists and is a broken symlink, Avis, Ed, 2005/05/18
- Re: mkdir when target exists and is a broken symlink, Eric Blake, 2005/05/18
- RE: mkdir when target exists and is a broken symlink, Avis, Ed, 2005/05/20