Mailing List Archive

r1790 - trunk/varnish-cache/lib/libvarnish
Author: des
Date: 2007-07-30 16:31:16 +0200 (Mon, 30 Jul 2007)
New Revision: 1790

Modified:
trunk/varnish-cache/lib/libvarnish/flopen.c
Log:
I accidentally committed the wrong patch in r1787; this corrects the logic
used to determine which lock type (shared or exclusive) to use.


Modified: trunk/varnish-cache/lib/libvarnish/flopen.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/flopen.c 2007-07-30 14:22:00 UTC (rev 1789)
+++ trunk/varnish-cache/lib/libvarnish/flopen.c 2007-07-30 14:31:16 UTC (rev 1790)
@@ -60,7 +60,7 @@
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;