Commit 01bbfd23 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

I accidentally committed the wrong patch in r1787; this corrects the logic

used to determine which lock type (shared or exclusive) to use.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1790 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f4cd3ec7
......@@ -60,7 +60,7 @@ flopen(const char *path, int flags, ...)
va_end(ap);
}
lock.l_type = (flags & O_WRONLY || flags & O_RDWR) ? F_WRLCK : F_RDLCK;
lock.l_type = (flags & O_RDONLY) ? F_RDLCK : F_WRLCK;
lock.l_start = 0;
lock.l_whence = SEEK_SET;
lock.l_len = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment