" I have found problem with file locking and 64bit linux (tested on
ultrasparc). When issued fcntl(fd, f_SETLK, ..) with l_start = 0 and l_len
= 0, it sets l_len to LONG_MAX, so it is needed to test this value"
this way at least, they can get work done */
if (af->l_len == 0x7fffffff)
af->l_len = 0; /* since some systems indicate it as EOF */
+#ifdef AFS_LINUX_64BIT_KERNEL
+ if (af->l_len == LONG_MAX)
+ af->l_len = 0; /* since some systems indicate it as EOF */
+#endif
/* next line makes byte range locks always succeed,
even when they should block */
if (af->l_whence != 0 || af->l_start != 0 || af->l_len != 0) {