]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(open_maybe_create): New function.
authorJim Meyering <jim@meyering.net>
Fri, 2 Apr 1999 02:55:10 +0000 (02:55 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 2 Apr 1999 02:55:10 +0000 (02:55 +0000)
commit35aee6bf137f5c5f7b283d1cd11f960ce2df2264
tree0fc7689292127037d69a6b75ddb2ed7d0369de8a
parentac03113efebc0b858ea30e71f265aa3b02d0dec8
(open_maybe_create): New function.
(touch): Rewrite not to use `creat' and to eliminate a race
condition that could make touch truncate a nonempty file.
Report and suggestions from Andrew Tridgell.
src/touch.c