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>
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to