Go to file
Karel Zak eb742a1f66 flock: use O_RDWR as fallback if O_RDONLY returns EIO
The commit 75aaee08f0 introduces
regression:

     $ echo '#!/bin/sh' > test.sh
     $ chmod a+rx test.sh
     $ flock -eon ./test.sh ./test.sh
     flock: ./test.sh: Text file busy

The lock file cannot be opened in read-write mode by default, because
then we cannot use flock(1) to lock executable files.

The read-write mode for lock files is necessary on NFSv4 where
flock(2) is emulated by by fcntl() -- this situation is possible to
detect by flock(2) EIO error.

This patch reverts the default to O_RDONLY and use O_RDWR only if EIO
error is detected.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-21 17:26:41 +01:00
Documentation docs: update TODO file 2011-11-11 12:58:59 +01:00
config build-sys: add smatch data 2011-09-13 11:10:18 +02:00
disk-utils mkswap: wipe all old signatures 2011-11-11 13:33:51 +01:00
fdisk fdisk: split delete_partition() off from dos_delete_partition() 2011-11-14 15:07:28 +01:00
fsck fsck: use FS blacklist for non-all mode too 2011-11-02 15:51:45 +01:00
getopt docs: use .LGPL extension for file with GNU Lesser License 2011-08-31 11:12:17 +02:00
hwclock misc: use %m in format string instead of %s and strerror(errno) 2011-09-27 15:46:07 +02:00
include lib,match: split match_fstype() from libmount 2011-11-15 15:17:19 +01:00
lib lib,match: split match_fstype() from libmount 2011-11-15 15:17:19 +01:00
libblkid libblkid: export PTMAGIC also if only PTTYPE requested 2011-11-15 12:49:31 +01:00
libmount lib,match: split match_fstype() from libmount 2011-11-15 15:17:19 +01:00
libuuid libuuid: fix includes in man pages 2011-11-03 12:32:51 +01:00
login-utils login: fix compiler warning [-Wreturn-type] 2011-11-18 13:19:21 +01:00
m4 build-sys: fix UL_INIT_BUILD macro 2011-11-04 14:08:30 +01:00
man/ru build-sys: don't install ru/ddate.1 if ddate disabled 2011-08-30 09:46:10 +02:00
misc-utils wipefs: add -t <list> option 2011-11-15 15:19:28 +01:00
mount mount: fix build 2011-11-09 00:47:33 +01:00
partx partx: use USAGE_ macros 2011-11-02 16:22:44 +01:00
po po: merge changes 2011-08-29 12:23:30 +02:00
schedutils build-sys: cleanup BUILD_SCHEDUTILS 2011-11-03 12:32:50 +01:00
sys-utils flock: use O_RDWR as fallback if O_RDONLY returns EIO 2011-11-21 17:26:41 +01:00
term-utils agetty: pass hostname to login(1) 2011-10-26 23:17:15 +02:00
tests tests: add build-sys regression test 2011-11-04 20:58:21 +01:00
text-utils column: avoid memory overrun and/or use of uninitialized buffer 2011-11-16 23:51:33 +01:00
tools build-sys: add tools/config-gen and basic compilation scenarios 2011-11-04 20:56:06 +01:00
.gitignore build-sys: rename and move macros 2011-11-03 12:32:49 +01:00
AUTHORS Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit 2011-08-31 11:04:15 +02:00
COPYING Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
ChangeLog build-sys: use AUTOMAKE_OPTIONS = gnu 2011-05-26 15:04:01 +02:00
Makefile.am build-sys: use --enable-most-builds for distcheck 2011-09-12 14:12:43 +02:00
NEWS Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit 2011-08-31 11:04:15 +02:00
README docs: new file Documentation/howto-contribute.txt 2011-08-23 21:34:20 +02:00
README.licensing rename util-linux-ng back to util-linux 2010-11-30 11:41:59 +01:00
autogen.sh build-sys: enhance error message for missing libtoolize 2011-10-10 13:56:53 +02:00
configure.ac build-sys: fix libuuid initialization 2011-11-03 12:32:51 +01:00

README

                                  util-linux

              util-linux is a random collection of Linux utilities

     Note that in years 2006-2010 this project used the name "util-linux-ng".

WEB PAGE:

     http://kernel.org/~kzak/util-linux/


MAILING LIST:

      E-MAIL: util-linux@vger.kernel.org
      URL:    http://vger.kernel.org/vger-lists.html#util-linux


DOWNLOAD:

      ftp://ftp.kernel.org/pub/linux/utils/util-linux/


SOURCE CODE:

      Web interface:
          http://git.kernel.org/?p=utils/util-linux/util-linux.git
      Checkout:
          git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux


NLS (PO TRANSLATIONS):

      PO files are maintained by:
          http://translationproject.org/domain/util-linux-ng.html


VERSION SCHEMA:

      Standard releases:

          <major>.<minor>[.<maint>[.<bugfix>]]

             major = fatal and deep changes
             minor = typical release with new features
             maint = maintenance releases; bug fixes only
             bugfix = unplanned releases for critical/security bugs

      Development releases:

         <major>.<minor>-rc<N>