Bug 1149974

Summary: /usr/bin/flock --timeout=0 not work
Product: [Fedora] Fedora Reporter: Reinin Oyama <lenin>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 20CC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-24 14:17:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Reinin Oyama 2014-10-07 05:22:34 UTC
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

Comment 1 Karel Zak 2014-10-07 10:18:56 UTC
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!

Comment 2 Karel Zak 2014-10-24 14:14:07 UTC
Fixed in v2.25.2 (f21)