Date: Fri, 10 May 2013 20:01:25 +0200 From: Mateusz Guzik <mjguzik@gmail.com> To: Eitan Adler <eadler@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r250462 - head/usr.bin/lockf Message-ID: <20130510180124.GA11396@dft-labs.eu> In-Reply-To: <201305101730.r4AHUUUs075105@svn.freebsd.org> References: <201305101730.r4AHUUUs075105@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 10, 2013 at 05:30:30PM +0000, Eitan Adler wrote: > Author: eadler > Date: Fri May 10 17:30:29 2013 > New Revision: 250462 > URL: http://svnweb.freebsd.org/changeset/base/250462 > > Log: > Add option to lockf to avoid creating a file if it does not exist. > Patch seems to be incomplete. > +.It Dv EX_UNAVAILABLE > +The > +.Fl n > +option is specified and the specified lock file does not exist. > .It Dv EX_USAGE > There was an error on the > .Nm > > > - if ((fd = open(name, O_RDONLY|O_CREAT|O_EXLOCK|flags, 0666)) == -1) { > + if ((fd = open(name, flags|O_RDONLY|O_EXLOCK|flags, 0666)) == -1) { > if (errno == EAGAIN || errno == EINTR) > return (-1); > err(EX_CANTCREAT, "cannot open %s", name); EX_UNAVAILABLE is never returned. -- Mateusz Guzik <mjguzik gmail.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130510180124.GA11396>