Sami Kerola
b2d28533dd
fdisk: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 20:02:04 +02:00
Sami Kerola
3862f68538
getopt: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 20:01:07 +02:00
Sami Kerola
db116df726
hwclock: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:59:35 +02:00
Sami Kerola
439cdf1e24
login-utils: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:58:34 +02:00
Sami Kerola
c05a80ca63
misc-utils: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:56:48 +02:00
Sami Kerola
f65c6d4e82
mount: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:54:15 +02:00
Sami Kerola
757bbfad4f
partx: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:53:13 +02:00
Sami Kerola
ed8ec2a65d
schedutils: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:51:32 +02:00
Sami Kerola
efb8854f4c
sys-utils: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:49:40 +02:00
Sami Kerola
cdd2a8c360
term-utils: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:46:25 +02:00
Sami Kerola
b87cbe8486
text-utils: verify writing to streams was successful
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:45:41 +02:00
Sami Kerola
302e423dc1
include: add stream error checking facility
...
The close_stream() is copied from GNU lib. Inspiration to do this is
talk by Jim Meyering - Goodbye World! The perils of relying on output
streams in C.
Reference: http://www.irill.org/events/ghm-gnu-hackers-meeting/videos/jim-meyering-goodbye-world-the-perils-of-relying-on-output-streams-in-c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-04 19:45:37 +02:00
Peter Rajnoha
8265242b22
lsblk: count with terminating character, man page -s entry
...
Signed-off-by: Peter Rajnoha <prajnoha@redhat.com>
2012-04-04 13:32:25 +02:00
Karel Zak
4581bd9c67
build-sys: disable chkdupexe by default, mark as deprecated
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-04 12:18:32 +02:00
Karel Zak
9554f7abd8
lsblk: use libmount to get mountpoints/swaps
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-03 13:43:50 +02:00
Karel Zak
ce4dd666f4
libmount: add support to parse /proc/swaps
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-03 13:20:32 +02:00
Karel Zak
7104bedb78
libmount: clean up MNT_FMT_* usage in parser
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-03 11:32:12 +02:00
Karel Zak
72bec4d0dd
mount: (old) check for LD_FLAGS_AUTOCLEAR more carefully
...
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=803799
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-02 17:34:07 +02:00
Karel Zak
6219c25ecb
lib/loopdev: more robust initialization
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-02 17:33:41 +02:00
Karel Zak
8063efea36
rtcwake: tiny coding style change
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-02 13:21:33 +02:00
Sami Kerola
d2ec3e33f1
script: error in usage() output
...
Error originates to commit 3ff526391f
which is bit more than year, and part or releases v2.20 & v2.21.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-02 13:14:20 +02:00
Sami Kerola
73aa889479
tests: hwclock: locate ntpdate by using path
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-02 13:14:20 +02:00
Paul Fox
1707576155
rtcwake: only invoke RTC_AIE_ON/OFF ioctls in pairs
...
many rtc drivers don't implement the RTC_AIE_ON/OFF ioctls at all --
so if we never tried to enable the alarm interrupt, don't try to
disable it later.
Signed-off-by: Paul Fox <pgf@laptop.org>
2012-04-02 13:14:00 +02:00
Karel Zak
a3ef250e90
delpart: improve error messages
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:57:47 +02:00
Karel Zak
0392dcf920
addpart: improve error messages
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 16:56:28 +02:00
Sami Kerola
7e08b7d3ce
tools: ko-release: make scripts bourne sh compliant [checkbashisms]
...
$ checkbashisms ko-release-gen
possible bashism in ko-release-gen line 31 ('function' is useless):
function die {
possible bashism in ko-release-gen line 36 ('function' is useless):
function add_file {
possible bashism in ko-release-gen line 68 ('function' is useless):
function add_html_dir {
possible bashism in ko-release-gen line 72 (brace expansion):
for fl in $(ls $src/*.{html,css,png}); do
$ checkbashisms ko-release-push
possible bashism in ko-release-push line 29 ('function' is useless):
function die {
possible bashism in ko-release-push line 34 ('function' is useless):
function push_file {
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:13 +02:00
Sami Kerola
8313455161
tools: config-gen: make scripts bourne sh compliant [checkbashisms]
...
$ checkbashisms config-gen
script config-gen does not appear to be a /bin/sh script
possible bashism in config-gen line 27 (export foo=bar should be foo=bar; export foo):
export CFLAGS="$CFLAGS"
$ checkbashisms config-gen-functions.sh
possible bashism in config-gen-functions.sh line 14 ('function' is useless):
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:13 +02:00
Sami Kerola
8b32e57f29
tools: checkconfig.sh: make scripts bourne sh compliant [checkbashisms]
...
script checkconfig.sh does not appear to be a /bin/sh script
possible bashism in checkconfig.sh line 14 ('function' is useless):
function die() {
possible bashism in checkconfig.sh line 27 ('((' should be '$(('):
while (( "$#" )); do
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
b0660441de
reset: make scripts bourne sh compliant [checkbashisms]
...
In addition strict compliance the commit will take variable name
quoting, and $(command) substitution in use.
$ checkbashisms reset reset.033c
possible bashism in reset line 11 ('$[' should be '$(('):
bot=$[ ${LINES:-`tput lines`} - 1 ]
possible bashism in reset.033c line 11 (echo -e):
echo -e \\033c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
47a9edbd6d
fstrim: add --version and align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
13814e3697
findmnt: remove dublicate usage() line
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
584aed6b02
fallocate: add --version and align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
1275d8a1c1
swaplabel: add --version and align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
2a11944f16
fsck.minix: fix printf format warning
...
fsck.minix.c:1302:3: warning: ISO C does not support the '%m' gnu_printf format [-Wformat]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
a2bfda30ba
fsck.minix: clean up coding style
...
$ indent -linux -psl -blf disk-utils/fsck.minix.c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
78ecf61b0e
fsck.minix: align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
d4a573bc7b
fsck.minix: use rpmatch() for yes/no question
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
891327c091
fsck.minix: use symbolic exit codes
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
922ec175e5
fsck.cramfs: add long options
...
And align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
397f499613
pg: align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
b6415f1243
pg: correct version printing in help screen
...
Commit also adds -V option.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
cd12136371
raw: clean up coding style
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
d5fc1b1581
raw: check numeric user inputs
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
16d8a9c967
raw: use pathnames.h for file locations
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
82b7ef3671
raw: use libc error printing facilities
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
44e535353e
raw: use symbolic exit numbers
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
1e0aef8257
raw: add long options and version printing
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
7c7c8bc53b
raw: align with howto-usage-function.txt
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
04874274a5
delpart: align with util-linux coding standards
...
Add long options and usage function, use gnu errror printing
facilities and validate inputs.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00
Sami Kerola
7911302085
addpart: align with util-linux coding standards
...
Add long options and usage function, use gnu errror printing
facilities and validate inputs.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-30 16:48:12 +02:00