Karel Zak
b1fa3e2234
lib: use O_CLOEXEC in libcommon
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-03 16:13:06 +02:00
Karel Zak
7e3729e750
include/fileutils: use O_CLOEXEC for mktemp stuff
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-03 16:12:34 +02:00
Karel Zak
2ffad204c0
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>
2013-04-03 16:11:19 +02:00
Karel Zak
4e5262e450
lib/canonicalize: don't use /dev/mapper/<name> if the node does not exist
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-03 13:32:39 +02:00
Karel Zak
39de73f5f1
libmount: add version and features to debug output
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-02 22:26:12 +02:00
Sami Kerola
20a5105648
bash-completion: add completion files to Makefile.am
...
And remove shell completion TODO item.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 17:41:55 +01:00
Sami Kerola
c72fca2ced
bash-completion: text-utils
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 17:41:55 +01:00
Sami Kerola
8884f6d5f4
bash-completion: term-utils
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 17:41:55 +01:00
Sami Kerola
c6f8c3f5ce
bash-completion: sys-utils
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 17:41:55 +01:00
Sami Kerola
18b0017ae6
bash-completion: schedutils
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 17:41:55 +01:00
Sami Kerola
76dceb10a1
bash-completion: misc-utils
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 17:41:50 +01:00
Sami Kerola
41e5a92cf1
bash-completion: login-utils
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 17:16:53 +01:00
Sami Kerola
2bd3b27a25
bash-completion: fdisks
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 16:31:12 +01:00
Sami Kerola
bf60993cf2
bash-completion: disk-utils
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-01 16:08:02 +01:00
Sami Kerola
9cc36e9fdf
bash-completion: add bash completetion configure option
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-03-30 10:17:49 +00:00
Karel Zak
c7e76cd145
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.
2013-03-29 17:16:09 +01:00
Karel Zak
4cd271adc1
libmount: make mnt_table_find_* more robust [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:47:46 +01:00
Karel Zak
05ba8c8483
wipefs: make do_wipe() more readable [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:34:11 +01:00
Karel Zak
23b4715b8d
rename: fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:29:48 +01:00
Karel Zak
4e6fc1139b
wipefs: fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:25:30 +01:00
Karel Zak
a77e7ac77c
setterm: fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:22:56 +01:00
Karel Zak
1544dea1c9
mkfs.cramfs: fix resource leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:18:33 +01:00
Karel Zak
765056b372
pg: fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:16:46 +01:00
Karel Zak
c1253a3b10
libfdisk: (gpt) fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:15:57 +01:00
Karel Zak
985b351ed8
mkfs.cramfs: fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:15:37 +01:00
Karel Zak
8362545b4a
lib/xalloc: fix mamory leak in xgethostname() [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:08:47 +01:00
Karel Zak
6acde8a3b1
libblkid: (udf) fix possible null pointer dereference [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 16:02:07 +01:00
Karel Zak
b3eff5dd74
lscpu: make /proc/sysinfo usage more robust [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 15:59:40 +01:00
Karel Zak
e36aad2139
lscpu: remove dead code [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 15:01:41 +01:00
Karel Zak
ad85c7bad9
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>
2013-03-27 14:50:52 +01:00
Karel Zak
3c7fbc82da
flock: possible pointer dereferences [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:40:42 +01:00
Karel Zak
31bfda07a4
getopt: fix normalize() usage [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:38:07 +01:00
Karel Zak
82455ad52a
su: make code more robust [coverity scan]
...
... and more readable for static analyzers
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:36:06 +01:00
Karel Zak
915c1d99f6
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>
2013-03-27 14:33:17 +01:00
Karel Zak
66c00f1f95
libmount: fix __mnt_optstr_append_option() nonull attribute [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:28:42 +01:00
Karel Zak
b48d80fbe0
libmount: fix __mnt_cache_find_tag_value() [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:22:31 +01:00
Karel Zak
88a6006bc8
lsblk: fix hctl buffer usage [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:18:22 +01:00
Karel Zak
65060bd04d
lsblk: check returns [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:13:12 +01:00
Karel Zak
7488d4c068
login: check returns [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:13:00 +01:00
Karel Zak
bbe8e6a98e
libfdisk: check returns [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:12:47 +01:00
Karel Zak
eb542dff6a
libblkid: check returns [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:12:37 +01:00
Karel Zak
b3f30f50ab
fsck.cramfs: check returns [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 14:12:23 +01:00
Karel Zak
45b048b340
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>
2013-03-27 11:37:57 +01:00
Karel Zak
17206c059d
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>
2013-03-26 16:05:07 +01:00
Karel Zak
35bc7a2b67
docs: add note about /var/lib/hwclock to TODO
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-26 13:48:25 +01:00
Daniel Stodden
d9b22d179a
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>
2013-03-26 12:37:55 +01:00
Karel Zak
09e092ad5c
rtcwake: clean up usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-26 12:14:31 +01:00
Karel Zak
7528fae9e9
include/pathnames: rename _PATH_ADJPATH to _PATH_ADJTIME
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-26 11:45:45 +01:00
Karel Zak
3a2f3e82bb
rtcwake: add --adjfile command line option
...
... for better compatibility with hwclock.
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-26 11:16:12 +01:00
Samuel Thibault
e4544ec1e4
sulogin: couple of obvious fixes for non-linux systems
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-26 10:54:10 +01:00