Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2009 20:52:45 +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:  <200910162052.n9GKqwQe069283@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

jh          2009-10-16 20:52:45 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/touch        touch.c 
  Log:
  SVN rev 198175 on 2009-10-16 20:52:45Z by jh
  
  - 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
  Submitted by:   jilles [1]
  Reviewed by:    jilles
  Approved by:    trasz (mentor)
  
  Revision  Changes    Path
  1.24      +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?200910162052.n9GKqwQe069283>