r1790 - trunk/varnish-cache/lib/libvarnish
des at projects.linpro.no
des at projects.linpro.no
Mon Jul 30 16:31:16 CEST 2007
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;
More information about the varnish-commit
mailing list