Red Hat Bugzilla – Bug 162783
Bogus flock(1) in util-linux package breaks kernel.org
Last modified: 2007-11-30 17:11:09 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4
Description of problem:
Since FC4 at least, the util-linux package has added an flock(1) utility from Adam Richter. Unfortunately this is incompatible with and much more limited than a preexisting flock(1) utility used on kernel.org.
THIS HAS ALREADY BROKEN KERNEL.ORG ONCE AND IS THREATENING TO DO SO AGAIN.
Please unbundle this utility from the critical util-linux package, and preferrably, please include the kernel.org utility in your distribution.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Execute "flock -x 2"
Actual Results: Error message
Expected Results: Exclusive lock on file descriptor 2
I have tried to contact the util-linux maintainers about this issue as well.
At the request of the util-linux maintainers, I have updated my version of flock
to become a proper superset of the one currently in util-linux.
See the URL above.
I don't want to change any util in FC4 update. We can think about it for FC5.
You're right that your flock version looks better. It would be nice if you add
locale support to your code:
Accepted by upstream, already in FC5.