]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r198175:
authorjh <jh@FreeBSD.org>
Sun, 28 Mar 2010 11:22:38 +0000 (11:22 +0000)
committerjh <jh@FreeBSD.org>
Sun, 28 Mar 2010 11:22:38 +0000 (11:22 +0000)
commit982aa808578fe8b20a0b56d364f33fcef557aad8
tree3d32840ff6f085da65950acfa87a00f4ede004c9
parent75af522b6adaab12d75b9ed8fcb5b19c0d198122
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
usr.bin/touch/touch.c