[hackers] [sbase] If multiple modes are supplied to flock(1), the last one wins || sin

From: <git_AT_suckless.org>
Date: Wed, 7 Oct 2015 11:28:16 +0200 (CEST)

commit acca463813ab252ce7beff7090f1905e2e0f46fe
Author: sin <sin_AT_2f30.org>
AuthorDate: Wed Oct 7 10:26:04 2015 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Wed Oct 7 10:27:47 2015 +0100

    If multiple modes are supplied to flock(1), the last one wins

diff --git a/flock.c b/flock.c
index 190d3b1..5d36bdf 100644
--- a/flock.c
+++ b/flock.c
_AT_@ -31,7 +31,7 @@ main(int argc, char *argv[])
                 flags = LOCK_UN;
                 break;
         case 'x':
- /* for compat */
+ flags = LOCK_EX;
                 break;
         default:
                 usage();
Received on Wed Oct 07 2015 - 11:28:16 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 07 2015 - 11:36:15 CEST