--- a/sysdeps/mach/hurd/f_setlk.c 2019-09-11 14:25:03.000000000 +0200 +++ b/sysdeps/mach/hurd/f_setlk.c 2019-09-11 14:29:12.000000000 +0200 @@ -1,5 +1,5 @@ /* f_setlk -- locking part of fcntl - Copyright (C) 2014-2019 Free Software Foundation, Inc. + Copyright (C) 2014-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,7 +19,6 @@ #include #include #include -#include #include /* XXX @@ -46,18 +45,6 @@ if (cmd != LOCK_UN && wait == 0) cmd |= LOCK_NB; - if (whence == SEEK_CUR) - { - /* In case the target position is 0, we can support it below. */ - __off64_t cur = __lseek64 (fd, 0, SEEK_CUR); - - if (cur >= 0) - { - start = cur + start; - whence = SEEK_SET; - } - } - switch (whence) { case SEEK_SET: