(touch): Don't fail just because we couldn't open
authorJim Meyering <jim@meyering.net>
Sat, 13 Nov 1999 14:47:21 +0000 (14:47 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 13 Nov 1999 14:47:21 +0000 (14:47 +0000)
commit0e09235c9f11251268b6edb2333287fb5d3f24a4
tree34b57cd34bd6f296948beaa55da349dde3a98f84
parent6b85baa5025c5895f99cdac88c1dd5b530b7ccc7
(touch): Don't fail just because we couldn't open
an existing file.  This makes it so that touching a read-only
file now works.  Also clean up and simplify.
Based on a patch from Chip Salzenberg.
src/touch.c