Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2009 20:44:27 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh redir.c
Message-ID:  <200906202044.n5KKigFc062269@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2009-06-20 20:44:27 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               redir.c 
  Log:
  SVN rev 194560 on 2009-06-20 20:44:27Z by jilles
  
  Fix race condition in noclobber option.
  
  Formerly, it was possible for the file to be created between the check if it
  existed and the open; the contents would then be lost.
  
  Because this must use O_EXCL, noclobber > will not create a file through a
  symlink anymore. This agrees with behaviour of other shells.
  
  Approved by:    ed (mentor) (implicit)
  
  Revision  Changes    Path
  1.27      +19 -7     src/bin/sh/redir.c



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