jilles e3cb9d1015 Fix race condition in noclobber option.
Formerly, it was possible for the file to be created between the check if it
existed and the open; the contents would then be lost.

Because this must use O_EXCL, noclobber > will not create a file through a
symlink anymore. This agrees with behaviour of other shells.

Approved by:	ed (mentor) (implicit)
2009-06-20 20:44:27 +00:00
..
2005-08-13 15:04:30 +00:00
2004-04-06 20:06:54 +00:00
2004-04-06 20:06:54 +00:00
2006-02-04 14:37:50 +00:00
2004-04-06 20:06:54 +00:00
2004-04-06 20:06:54 +00:00
2005-08-13 08:26:58 +00:00
2004-04-06 20:06:54 +00:00
2004-04-06 20:06:54 +00:00
2004-04-06 20:06:54 +00:00
2004-04-06 20:06:54 +00:00
2006-04-16 11:54:01 +00:00