Commit 144bfefb authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 1896 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1896 | des | 2007-08-20 17:18:49 +0200 (Mon, 20 Aug 2007) | 2 lines
  
  Correct the lock.l_type logic for platforms where O_RDONLY is 0.
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1897 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ce0906d5
......@@ -60,7 +60,7 @@ flopen(const char *path, int flags, ...)
va_end(ap);
}
lock.l_type = (flags & O_RDONLY) ? F_RDLCK : F_WRLCK;
lock.l_type = ((flags & O_ACCMODE) == 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