]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
12 years agobash-completion: swapon: add options and fix argument
Sami Kerola [Mon, 8 Apr 2013 19:32:48 +0000 (20:32 +0100)] 
bash-completion: swapon: add options and fix argument

The initial bash-completion missed swapon options -L and -U.  Use of
block device was proposed to be more appropriate than a path to a file.

Requested-by: Karel Zak <kzak@redhat.com>
References: http://marc.info/?l=util-linux-ng&m=136517310727426&w=2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: setarch: use correct list for architectures
Sami Kerola [Mon, 8 Apr 2013 19:32:47 +0000 (20:32 +0100)] 
bash-completion: setarch: use correct list for architectures

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agosetarch: clean up usage()
Sami Kerola [Mon, 8 Apr 2013 19:32:46 +0000 (20:32 +0100)] 
setarch: clean up usage()

Requested-by: Karel Zak <kzak@redhat.com>
References: http://marc.info/?l=util-linux-ng&m=136516351523680&w=2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agolibblkid: clean up DBG()
Karel Zak [Mon, 8 Apr 2013 16:22:13 +0000 (18:22 +0200)] 
libblkid: clean up DBG()

 - use stderr only
 - use BLKID_ prefix for debug masks
 - don't use \n in in messages and don't use printf(),
   but use generic blkid_debug().

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobash-completion: Symlink runuser symlink to su so it gets loaded on demand.
Ville Skyttä [Sun, 7 Apr 2013 08:56:12 +0000 (11:56 +0300)] 
bash-completion: Symlink runuser symlink to su so it gets loaded on demand.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
[kzak@redhat.com: - use '-runuser' in the install hook
  - use the hook only if runuser is enabled]

12 years agobash-completion: Don't offer short options where corresponding long one exists.
Ville Skyttä [Sun, 7 Apr 2013 08:12:08 +0000 (11:12 +0300)] 
bash-completion: Don't offer short options where corresponding long one exists.

Users who know the short options can just hit the short option instead
of tab, and it's not likely that it would be helpful to present a list
of single character options to users who don't know them, doing so
just unnecessarily trashes the list of suggestions.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
12 years agoSpelling fixes.
Ville Skyttä [Sun, 7 Apr 2013 08:12:07 +0000 (11:12 +0300)] 
Spelling fixes.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
12 years agouuidd.8: Document --debug and --quiet long options.
Ville Skyttä [Sun, 7 Apr 2013 08:12:06 +0000 (11:12 +0300)] 
uuidd.8: Document --debug and --quiet long options.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
12 years agobash-completion: Avoid some unnecessary subshells.
Ville Skyttä [Sun, 7 Apr 2013 08:12:05 +0000 (11:12 +0300)] 
bash-completion: Avoid some unnecessary subshells.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
12 years agobash-completion: Don't offer any more completions after help or version.
Ville Skyttä [Sun, 7 Apr 2013 08:12:04 +0000 (11:12 +0300)] 
bash-completion: Don't offer any more completions after help or version.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
12 years agologger: make socket initialization in main() more readable
Karel Zak [Mon, 8 Apr 2013 14:39:59 +0000 (16:39 +0200)] 
logger: make socket initialization in main() more readable

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agologger: allow to log using tcp transport protocol
Sami Kerola [Fri, 5 Apr 2013 20:17:24 +0000 (21:17 +0100)] 
logger: allow to log using tcp transport protocol

This commit fixes error in usage() text, which claimed TCP is default
transport protocol.  That was not true, and neither it should be.  The
syslog messages has traditionally sent using UDP.

For the logger remains using UDP as first transport, but if it fails a
TCP connection is attempted.  If an user wishes remote logging can be
forced to use either UDP or TCP.  The service port for UDP is familiar
'syslog', for TCP the port 'syslog-conn' seems like reasonable default.

[kzak@redhat.com: - rename myopenlog to unix_socket(),
                  - always reset st to -1]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofsfreeze: add note about atime to the man page
Karel Zak [Mon, 8 Apr 2013 11:32:16 +0000 (13:32 +0200)] 
fsfreeze: add note about atime to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobuild-sys: add --disable-bash-completion
Karel Zak [Fri, 5 Apr 2013 13:54:31 +0000 (15:54 +0200)] 
build-sys: add --disable-bash-completion

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobash-completion: rename shell-completion -> bash-completion
Karel Zak [Fri, 5 Apr 2013 12:58:07 +0000 (14:58 +0200)] 
bash-completion: rename shell-completion -> bash-completion

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoMerge branch 'shell-completion' of git://github.com/kerolasa/lelux-utiliteetit
Karel Zak [Fri, 5 Apr 2013 12:14:28 +0000 (14:14 +0200)] 
Merge branch 'shell-completion' of git://github.com/kerolasa/lelux-utiliteetit

* 'shell-completion' of git://github.com/kerolasa/lelux-utiliteetit:
  bash-completion: add completion files to Makefile.am
  bash-completion: text-utils
  bash-completion: term-utils
  bash-completion: sys-utils
  bash-completion: schedutils
  bash-completion: misc-utils
  bash-completion: login-utils
  bash-completion: fdisks
  bash-completion: disk-utils
  bash-completion: add bash completetion configure option

12 years agologger: make local sockets to try both stream and datagram
Sami Kerola [Tue, 2 Apr 2013 19:42:57 +0000 (20:42 +0100)] 
logger: make local sockets to try both stream and datagram

When journald, from systemd, is in use logger gave following error.

$ logger --socket /dev/log test logger: connect /dev/log: Protocol wrong
type for socket

The journald supports only AF_DGRAM, and nothing else.  Support for
AF_STREAM sockets was dropped because it messed up message ordering.

From an users point of view necessity to add --udp (UNIX(TM) Datagram
Protocol?) option when talking to syslog via unix socket felt confusing
and wrong.  The command should know what is the socket type, and silently
use the correct one, unless the type is explicitely defined.

CC: Karel Zak <kzak@redhat.com>
Adviced-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agosetarch: add option to list settable architectures
Sami Kerola [Tue, 2 Apr 2013 19:42:53 +0000 (20:42 +0100)] 
setarch: add option to list settable architectures

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agochrt: make command syntax easier to understand in usage()
Sami Kerola [Tue, 2 Apr 2013 19:42:56 +0000 (20:42 +0100)] 
chrt: make command syntax easier to understand in usage()

And mention in manual that the default is referring to the internal
default of this command, not the Linux system default.  Manual page
example also tries to be a little more complete how to use the command.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agovipw: add usage() function
Sami Kerola [Tue, 2 Apr 2013 19:42:55 +0000 (20:42 +0100)] 
vipw: add usage() function

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agosetterm: fix various color option argument lists
Sami Kerola [Tue, 2 Apr 2013 19:42:54 +0000 (20:42 +0100)] 
setterm: fix various color option argument lists

The lists did not have correct colors in usage().  Because the usage()
had to be fixed, it is best to make the output easy for translators to
work with.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agopartx: remove deprecated option from usage()
Sami Kerola [Tue, 2 Apr 2013 19:42:52 +0000 (20:42 +0100)] 
partx: remove deprecated option from usage()

The fact that -l, --list is deprecated will remain in manual page till
unforeseeable future.  Meanwhile the usage() can be made shorter.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agolscpu: fix error message
Sami Kerola [Tue, 2 Apr 2013 19:42:51 +0000 (20:42 +0100)] 
lscpu: fix error message

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agolosetup: allow -j option argument to be relative path
Sami Kerola [Tue, 2 Apr 2013 19:42:50 +0000 (20:42 +0100)] 
losetup: allow -j option argument to be relative path

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agofsfreeze: tell user when mandatory option is not specified
Sami Kerola [Tue, 2 Apr 2013 19:42:49 +0000 (20:42 +0100)] 
fsfreeze: tell user when mandatory option is not specified

This commit also removes use of internal magic values by replacing them
with a enum definition.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agodmesg: fix usage() output consistancy
Sami Kerola [Tue, 2 Apr 2013 19:42:48 +0000 (20:42 +0100)] 
dmesg: fix usage() output consistancy

Possible facilities and levels are meant to be printed to same file as
the rest of the usage output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agoagetty: the command does not have -h and -V options
Sami Kerola [Tue, 2 Apr 2013 19:42:47 +0000 (20:42 +0100)] 
agetty: the command does not have -h and -V options

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agonewgrp: use xstrdup to check allocation succeeded
Sami Kerola [Tue, 2 Apr 2013 19:42:46 +0000 (20:42 +0100)] 
newgrp: use xstrdup to check allocation succeeded

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agodocs: remove repeated words
Karel Zak [Fri, 5 Apr 2013 11:35:30 +0000 (13:35 +0200)] 
docs: remove repeated words

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agortcwake: add --auto to usage()
Karel Zak [Fri, 5 Apr 2013 11:19:13 +0000 (13:19 +0200)] 
rtcwake: add --auto to usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoreadprofile: reorder options in man page
Karel Zak [Fri, 5 Apr 2013 11:16:02 +0000 (13:16 +0200)] 
readprofile: reorder options in man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoreadprofile: add --counters to the man page
Karel Zak [Fri, 5 Apr 2013 11:13:10 +0000 (13:13 +0200)] 
readprofile: add --counters to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofsck: cleanup usage()
Karel Zak [Fri, 5 Apr 2013 11:07:59 +0000 (13:07 +0200)] 
fsck: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoagetty: add --chroot to usage() and man page
Karel Zak [Fri, 5 Apr 2013 10:55:20 +0000 (12:55 +0200)] 
agetty: add --chroot to usage() and man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoagetty: add -E, --remote to usage()
Karel Zak [Fri, 5 Apr 2013 10:47:42 +0000 (12:47 +0200)] 
agetty: add -E, --remote to usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoul: cleanup usage() and man page
Karel Zak [Fri, 5 Apr 2013 10:43:51 +0000 (12:43 +0200)] 
ul: cleanup usage() and man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoraw: add long options to man page
Karel Zak [Fri, 5 Apr 2013 10:36:29 +0000 (12:36 +0200)] 
raw: add long options to man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomount: add --read-write to man page
Karel Zak [Fri, 5 Apr 2013 10:32:34 +0000 (12:32 +0200)] 
mount: add --read-write to man page

12 years agomount: add --show-labels to man page
Karel Zak [Fri, 5 Apr 2013 10:19:40 +0000 (12:19 +0200)] 
mount: add --show-labels to man page

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosetarch: normalize man page formatting
Karel Zak [Fri, 5 Apr 2013 09:49:37 +0000 (11:49 +0200)] 
setarch: normalize man page formatting

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agogetopt: fix usage() typo unquote -> unquoted
Karel Zak [Fri, 5 Apr 2013 09:21:17 +0000 (11:21 +0200)] 
getopt: fix usage() typo unquote -> unquoted

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofindmnt: fix typo fsroot -> nofsroot
Karel Zak [Fri, 5 Apr 2013 09:19:56 +0000 (11:19 +0200)] 
findmnt: fix typo fsroot -> nofsroot

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoblkid: use O_CLOEXEC
Karel Zak [Wed, 3 Apr 2013 14:14:47 +0000 (16:14 +0200)] 
blkid: use O_CLOEXEC

... to make "strace -e open blkid" for libblkid stuff without
exceptions.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: use O_CLOEXEC
Karel Zak [Wed, 3 Apr 2013 14:14:15 +0000 (16:14 +0200)] 
libblkid: use O_CLOEXEC

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: use O_CLOEXEC
Karel Zak [Wed, 3 Apr 2013 14:14:03 +0000 (16:14 +0200)] 
libmount: use O_CLOEXEC

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibuuid: use O_CLOEXEC
Karel Zak [Wed, 3 Apr 2013 14:13:55 +0000 (16:13 +0200)] 
libuuid: use O_CLOEXEC

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: use O_CLOEXEC
Karel Zak [Wed, 3 Apr 2013 14:13:45 +0000 (16:13 +0200)] 
libfdisk: use O_CLOEXEC

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib: use O_CLOEXEC in libcommon
Karel Zak [Wed, 3 Apr 2013 14:13:06 +0000 (16:13 +0200)] 
lib: use O_CLOEXEC in libcommon

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinclude/fileutils: use O_CLOEXEC for mktemp stuff
Karel Zak [Wed, 3 Apr 2013 14:12:34 +0000 (16:12 +0200)] 
include/fileutils: use O_CLOEXEC for mktemp stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinclude/c: add macro UL_CLOEXECSTR
Karel Zak [Wed, 3 Apr 2013 14:11:19 +0000 (16:11 +0200)] 
include/c: add macro UL_CLOEXECSTR

... to make "e" for fopen() portable to systems without O_CLOEXEC.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib/canonicalize: don't use /dev/mapper/<name> if the node does not exist
Karel Zak [Wed, 3 Apr 2013 11:32:39 +0000 (13:32 +0200)] 
lib/canonicalize: don't use /dev/mapper/<name> if the node does not exist

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: add version and features to debug output
Karel Zak [Tue, 2 Apr 2013 20:26:12 +0000 (22:26 +0200)] 
libmount: add version and features to debug output

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agobash-completion: add completion files to Makefile.am
Sami Kerola [Tue, 26 Mar 2013 20:54:47 +0000 (20:54 +0000)] 
bash-completion: add completion files to Makefile.am

And remove shell completion TODO item.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: text-utils
Sami Kerola [Tue, 26 Mar 2013 19:40:20 +0000 (19:40 +0000)] 
bash-completion: text-utils

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: term-utils
Sami Kerola [Mon, 25 Mar 2013 21:37:36 +0000 (21:37 +0000)] 
bash-completion: term-utils

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: sys-utils
Sami Kerola [Sun, 24 Mar 2013 17:19:09 +0000 (17:19 +0000)] 
bash-completion: sys-utils

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: schedutils
Sami Kerola [Sun, 24 Mar 2013 17:10:55 +0000 (17:10 +0000)] 
bash-completion: schedutils

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: misc-utils
Sami Kerola [Sat, 23 Mar 2013 17:41:32 +0000 (17:41 +0000)] 
bash-completion: misc-utils

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: login-utils
Sami Kerola [Sat, 23 Mar 2013 16:49:52 +0000 (16:49 +0000)] 
bash-completion: login-utils

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: fdisks
Sami Kerola [Sat, 23 Mar 2013 16:18:37 +0000 (16:18 +0000)] 
bash-completion: fdisks

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: disk-utils
Sami Kerola [Fri, 22 Mar 2013 23:37:11 +0000 (23:37 +0000)] 
bash-completion: disk-utils

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agobash-completion: add bash completetion configure option
Sami Kerola [Tue, 19 Mar 2013 22:24:41 +0000 (22:24 +0000)] 
bash-completion: add bash completetion configure option

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agolsblk: add --paths
Karel Zak [Fri, 29 Mar 2013 16:16:02 +0000 (17:16 +0100)] 
lsblk: add --paths

Now it's not so simple to generate full paths to devices if you want to
use user friendly names like /dev/mapper/foo. Let's make it easy.

12 years agolibmount: make mnt_table_find_* more robust [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:47:46 +0000 (16:47 +0100)] 
libmount: make mnt_table_find_* more robust [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agowipefs: make do_wipe() more readable [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:34:11 +0000 (16:34 +0100)] 
wipefs: make do_wipe() more readable [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agorename: fix memory leak [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:29:48 +0000 (16:29 +0100)] 
rename: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agowipefs: fix memory leak [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:25:30 +0000 (16:25 +0100)] 
wipefs: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosetterm: fix memory leak [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:22:56 +0000 (16:22 +0100)] 
setterm: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomkfs.cramfs: fix resource leak [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:18:33 +0000 (16:18 +0100)] 
mkfs.cramfs: fix resource leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agopg: fix memory leak [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:16:46 +0000 (16:16 +0100)] 
pg: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: (gpt) fix memory leak [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:15:57 +0000 (16:15 +0100)] 
libfdisk: (gpt) fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agomkfs.cramfs: fix memory leak [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:13:39 +0000 (16:13 +0100)] 
mkfs.cramfs: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib/xalloc: fix mamory leak in xgethostname() [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:08:47 +0000 (16:08 +0100)] 
lib/xalloc: fix mamory leak in xgethostname() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: (udf) fix possible null pointer dereference [coverity scan]
Karel Zak [Wed, 27 Mar 2013 15:02:07 +0000 (16:02 +0100)] 
libblkid: (udf) fix possible null pointer dereference [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolscpu: make /proc/sysinfo usage more robust [coverity scan]
Karel Zak [Wed, 27 Mar 2013 14:59:40 +0000 (15:59 +0100)] 
lscpu: make /proc/sysinfo usage more robust [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolscpu: remove dead code [coverity scan]
Karel Zak [Wed, 27 Mar 2013 14:01:41 +0000 (15:01 +0100)] 
lscpu: remove dead code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosulogin: don't run if not found passww entry [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:50:52 +0000 (14:50 +0100)] 
sulogin: don't run if not found passww entry [coverity scan]

sulogin(8) should not run if there is no /etc/{passwd,shadow} entry
and --force command line option is no specified otherwise NULL pointer
dereference is possible.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoflock: possible pointer dereferences [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:40:42 +0000 (14:40 +0100)] 
flock: possible pointer dereferences [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agogetopt: fix normalize() usage [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:38:07 +0000 (14:38 +0100)] 
getopt: fix normalize() usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosu: make code more robust [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:33:17 +0000 (14:33 +0100)] 
su: make code more robust [coverity scan]

 ... and more readable for static analyzers

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoagetty: make \{4,6} issue file code more robust [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:33:17 +0000 (14:33 +0100)] 
agetty: make \{4,6} issue file code more robust [coverity scan]

 ... and more readable for static analyzers

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:28:42 +0000 (14:28 +0100)] 
libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: fix __mnt_cache_find_tag_value() [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:22:31 +0000 (14:22 +0100)] 
libmount: fix __mnt_cache_find_tag_value() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolsblk: fix hctl buffer usage [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:17:52 +0000 (14:17 +0100)] 
lsblk: fix hctl buffer usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolsblk: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:13:12 +0000 (14:13 +0100)] 
lsblk: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agologin: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:13:00 +0000 (14:13 +0100)] 
login: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:12:47 +0000 (14:12 +0100)] 
libfdisk: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:12:37 +0000 (14:12 +0100)] 
libblkid: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofsck.cramfs: check returns [coverity scan]
Karel Zak [Wed, 27 Mar 2013 13:12:23 +0000 (14:12 +0100)] 
fsck.cramfs: check returns [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: fix NTFS prober on big-endian machines
Karel Zak [Wed, 27 Mar 2013 10:37:57 +0000 (11:37 +0100)] 
libblkid: fix NTFS prober on big-endian machines

 MFT_RECORD_ATTR_VOLUME_NAME  = cpu_to_le32(0x60),
                                 ^
./include/bitops.h:94:36: error: braced-group within expression
allowed only inside a function

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibmount: fix user-mount by root for mount.<type> helpers
Karel Zak [Tue, 26 Mar 2013 15:05:07 +0000 (16:05 +0100)] 
libmount: fix user-mount by root for mount.<type> helpers

Append options like "exec" "suid" and "dev" to mount.<type> helpers
command line if the options are in fstab. This is relevant for root
user who calls mount(8) for fstab entries with "user,exec" etc.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: add note about /var/lib/hwclock to TODO
Karel Zak [Tue, 26 Mar 2013 12:48:25 +0000 (13:48 +0100)] 
docs: add note about /var/lib/hwclock to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoschedutils: don't apply -a without -p
Daniel Stodden [Mon, 25 Mar 2013 09:33:59 +0000 (02:33 -0700)] 
schedutils: don't apply -a without -p

The unsuspecting user might use taskset -a mask command. Behavior then
is to exec with no affinity applied at all. Better handled by ignoring
all_tasks if no pid was given.

Signed-off-by: Daniel Stodden <daniel.stodden@gmail.com>
12 years agortcwake: clean up usage
Karel Zak [Tue, 26 Mar 2013 11:14:31 +0000 (12:14 +0100)] 
rtcwake: clean up usage

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinclude/pathnames: rename _PATH_ADJPATH to _PATH_ADJTIME
Karel Zak [Tue, 26 Mar 2013 10:45:45 +0000 (11:45 +0100)] 
include/pathnames: rename _PATH_ADJPATH to _PATH_ADJTIME

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agortcwake: add --adjfile command line option
Karel Zak [Tue, 26 Mar 2013 10:16:12 +0000 (11:16 +0100)] 
rtcwake: add --adjfile command line option

 ... for better compatibility with hwclock.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agosulogin: couple of obvious fixes for non-linux systems
Samuel Thibault [Fri, 22 Mar 2013 13:41:47 +0000 (14:41 +0100)] 
sulogin: couple of obvious fixes for non-linux systems

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agodocs: arch is gone, use delpart as usage() function example
Sami Kerola [Thu, 21 Mar 2013 21:47:15 +0000 (21:47 +0000)] 
docs: arch is gone, use delpart as usage() function example

The arch.c was removed in commit 27abd809.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agoblkid: use xalloc.h when possible
Sami Kerola [Thu, 21 Mar 2013 21:47:14 +0000 (21:47 +0000)] 
blkid: use xalloc.h when possible

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
12 years agomount: improve --move error message on shared trees
Karel Zak [Mon, 25 Mar 2013 12:58:53 +0000 (13:58 +0100)] 
mount: improve --move error message on shared trees

Signed-off-by: Karel Zak <kzak@redhat.com>