freebsd-dev/usr.bin/touch
Jaakko Heinonen f004e8133a MFC r198175:
- If lstat()/stat() fails with an error other than ENOENT, don't ignore
  the error and assume that the file doesn't exist. Touch could return
  success with -c option even if the file existed and time was not set.
- If the first utimes_f() call fails with -A option, give up and don't
  continue trying to set times to current time. [1]
- Set exit status to 1 when setting of timestamps fails for a directory
  or symbolic link even though lstat()/stat() would succeed.
- Don't print bogus error message when rw() succeeds.

PR:		bin/112213
2010-03-28 11:22:38 +00:00
..
Makefile
touch.1 Update to match revision 1.23 of touch.c. 2007-04-10 07:24:47 +00:00
touch.c MFC r198175: 2010-03-28 11:22:38 +00:00