]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Ville Skyttä [Sun, 7 Apr 2013 08:12:07 +0000 (11:12 +0300)]
Spelling fixes.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Fri, 5 Apr 2013 11:07:59 +0000 (13:07 +0200)]
fsck: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
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>
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>
Karel Zak [Fri, 5 Apr 2013 10:32:34 +0000 (12:32 +0200)]
mount: add --read-write 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Sami Kerola [Sun, 24 Mar 2013 17:10:55 +0000 (17:10 +0000)]
bash-completion: schedutils
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
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>
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>
Sami Kerola [Sat, 23 Mar 2013 16:18:37 +0000 (16:18 +0000)]
bash-completion: fdisks
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
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>
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>
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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Mon, 25 Mar 2013 12:56:31 +0000 (13:56 +0100)]
libmount: add mnt_table_find_mountpoint()
This is more robust implementation of mnt_get_mountpoint() that does
not ignore bind mountpoints (mount --bind /mnt /mnt) as it does not
depend on st_dev numbers.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 25 Mar 2013 12:40:06 +0000 (13:40 +0100)]
libmount: make libmount.h consistent with code
The function with nonnull attribute are silently optimized by gcc so
all "if (foo)" are removed if the "foo" is expected as non-null. It
make the code less usable and robust in some situations.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 25 Mar 2013 08:17:52 +0000 (09:17 +0100)]
libmount: umount crashes when trying to umount a non-mountpoint
Reported-by: Mantas Mikulėnas <grawity@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Mar 2013 11:34:28 +0000 (12:34 +0100)]
build-sys: release++ (v2.23-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Mar 2013 11:33:27 +0000 (12:33 +0100)]
build-sys: keep libuser optional
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Mar 2013 09:17:10 +0000 (10:17 +0100)]
docs: upadte v2.23-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>