Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Mar 2010 11:22:38 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/usr.bin/touch touch.c
Message-ID:  <201003281123.o2SBN238039634@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jh          2010-03-28 11:22:38 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    usr.bin/touch        touch.c 
  Log:
  SVN rev 205790 on 2010-03-28 11:22:38Z by jh
  
  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
  
  Revision   Changes    Path
  1.23.10.2  +11 -4     src/usr.bin/touch/touch.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003281123.o2SBN238039634>