Description of problem: flock --timeout=0 lockfile ehco Show error-message like this. flock: timeout cannot be zero it differs from document! timeout=0 must be allowed! Version-Release number of selected component (if applicable): util-linux-2.24.2-1.fc20.x86_64 How reproducible: Allways Steps to Reproduce: flock --timeout=0 lockfile ehco Actual results: flock: timeout cannot be zero Expected results: Must be no error message! Additional info: No
You're right, the "timeout cannot be zero" nonsense was introduced 3 years ago. Fixed by upstream commit c4604c38b503c8c46e50fc2048ebbcbcfcad3802, fedora package will be fixed ASAP. Thanks!
Fixed in v2.25.2 (f21)