Go to file
Karel Zak 1b414d8935 swapon: -a has to complain, fix leaks
The "swapon -a" command (without "-e" option) has to complain always
when LABEL or UUID does not exist.

Test:

	# grep foo /etc/fstab
	LABEL=foo swap swap defaults 0 0

   Old version:

	# swapon -a; echo $?
	0

   Fixed version:

	# swapon -a; echo $?
	swapon: cannot find the device for LABEL=foo
	255

	# swapon -a -e; echo $?
	0

This version also fix two memory leaks.

Signed-off-by: Karel Zak <kzak@redhat.com>
2008-08-19 01:22:02 +02:00
config build-sys: use dist_man_MANS instead of man_MANS 2007-12-17 10:08:49 +01:00
disk-utils use getpagesize() 2008-07-30 13:26:58 +02:00
docs build-sys: release++ (v2.14) 2008-06-09 13:58:54 +02:00
example.files raw: add file with udev rule example 2007-01-26 20:06:38 +01:00
fdisk fdisk: remove obsolete information from man page 2008-08-18 13:15:10 +02:00
getopt build-sys: ignore a bunch of generated files, mostly binaries 2008-04-14 14:08:00 +02:00
hwclock hwclock: don't open /dev/rtc repeatedly 2008-08-18 14:08:57 +02:00
include losetup: looplist_* refactoring, remove scandir() 2008-08-04 13:54:27 +02:00
lib lib: blkdev.c clean up, non-linux support 2008-07-24 00:52:52 +02:00
licenses Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
login-utils remove CVS keywords 2008-07-28 11:10:08 +02:00
misc-utils scriptreplay: new implementation is out-of-sync 2008-08-13 11:54:13 +02:00
mount swapon: -a has to complain, fix leaks 2008-08-19 01:22:02 +02:00
partx build-sys: update .gitignore files 2008-04-14 14:24:03 +02:00
po lscpu: new command 2008-07-18 03:01:49 +02:00
schedutils ionice: cleanup error messages, add NLS support 2008-08-14 11:40:08 +02:00
sys-utils lscpu: --sysroot option and stable cache output 2008-08-14 12:22:29 +02:00
tests lscpu: regression tests 2008-08-14 13:15:43 +02:00
text-utils remove CVS keywords 2008-07-28 11:10:08 +02:00
tools tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans 2007-06-15 10:17:51 +02:00
.gitignore build-sys: update .gitignore files 2008-04-14 14:24:03 +02:00
AUTHORS docs: update AUTHORS file 2008-06-09 12:49:40 +02:00
COPYING Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
DEPRECATED losetup: mark the option -s as deprecated 2008-04-15 15:18:48 +02:00
INSTALL Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
Makefile.am build-sys: add --enable-static-programs 2008-02-18 13:27:02 +01:00
NEWS build-sys: release++ (v2.14) 2008-06-09 13:58:54 +02:00
README docs: add note about static linking 2008-03-12 14:07:28 +01:00
README.devel docs: cleanup README.devel, add note about coding style and Signed-off-by 2008-04-14 12:51:41 +02:00
README.licensing lscpu: new command 2008-07-18 03:01:49 +02:00
TODO docs: TODO update 2008-08-14 11:48:26 +02:00
autogen.sh build-sys: autogen.sh reports versions of autotools now 2007-09-02 13:43:31 +02:00
configure.ac build-sys: tgets is not in ncurses but in tinfo 2008-08-08 11:09:11 +02:00

README

                          utils-linux-ng
           (fork of util-linux, based on version 2.13-pre7)

         util-linux is a random collection of Linux utilities

WEB PAGE:

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


MAILING LIST:

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


DOWNLOAD:

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


SOURCE CODE:

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

NLS (PO TRANSLATIONS):

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

NEUTRALITY:

      The stuff in util-linux-ng should be rather distribution-neutral.
      No RPMs/DEBs/... are provided - get yours from your distributor.


VERSION SCHEMA:

      Standard releases:

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

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

      Development releases:

         <major>.<minor><suffix>

             suffix = "devel" or "-rc<N>"


COMPILATION:

      See the INSTALL file for more details.

      Notes:
            * use SUID_CFLAGS and SUID_LDFLAGS when you want to define special
              compiler options for typical suid programs, for example:

                  ./configure SUID_CFLAGS="-fpie" SUID_LDFLAGS="-pie"

              This feature is currently supported for chfn, chsh, newgrp,
              write, mount, and umount.


STATIC LINKING:

      Use --enable-static-programs[=LIST] configure option when you want to use
      statically linked programs.

      Note, mount(8) uses get{pw,gr}nam() and getpwuid() functions for
      translation from username and groupname to UID and GID. These functions
      could be implemented by dynamically loaded independent modules (NSS) in
      your libc (e.g. glibc). These modules are not statically linked to mount(8)
      and mount.static is still using dlopen() like dynamically linked version.

      The translation won't be work in environment where is not installed the
      NSS modules.

      For example normal system (NSS modules are available):

              # ./mount.static -v -f -n -ouid=kzak /mnt/foo
              LABEL=/mnt/foo on /mnt/foo type vfat (rw,uid=500)
                                                       ^^^^^^^
      and without NSS modules:

              # chroot . ./mount.static -v -f -n -ouid=kzak /mnt/win
              LABEL=/mnt/win on /mnt/win type vfat (rw,uid=kzak)
                                                       ^^^^^^^^