]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
13 years agolook: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 10:26:56 +0000 (12:26 +0200)] 
look: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologger: indent usage()
Karel Zak [Tue, 16 Aug 2011 10:23:15 +0000 (12:23 +0200)] 
logger: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agocal: indent usage()
Karel Zak [Tue, 16 Aug 2011 10:16:31 +0000 (12:16 +0200)] 
cal: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: indent usage()
Karel Zak [Tue, 16 Aug 2011 10:12:46 +0000 (12:12 +0200)] 
blkid: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofsck: use <var> in usage()
Karel Zak [Tue, 16 Aug 2011 10:07:32 +0000 (12:07 +0200)] 
fsck: use <var> in usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agogetopt: use <var> in usage()
Karel Zak [Tue, 16 Aug 2011 10:06:45 +0000 (12:06 +0200)] 
getopt: use <var> in usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: use <var> in usage()
Karel Zak [Tue, 16 Aug 2011 10:04:57 +0000 (12:04 +0200)] 
hwclock: use <var> in usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: clean up usage
Karel Zak [Tue, 16 Aug 2011 09:58:50 +0000 (11:58 +0200)] 
agetty: clean up usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: indent usage()
Karel Zak [Tue, 16 Aug 2011 09:32:24 +0000 (11:32 +0200)] 
hwclock: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agogetopt: indent usage()
Karel Zak [Tue, 16 Aug 2011 08:37:19 +0000 (10:37 +0200)] 
getopt: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofsck: indent usage()
Karel Zak [Tue, 16 Aug 2011 08:31:08 +0000 (10:31 +0200)] 
fsck: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: indent usage()
Karel Zak [Tue, 16 Aug 2011 08:28:59 +0000 (10:28 +0200)] 
sfdisk: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblockdev: indent usage()
Karel Zak [Tue, 16 Aug 2011 08:20:45 +0000 (10:20 +0200)] 
blockdev: indent usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologger: improve descriptions on man page, sort the options, add -h and -V
Benno Schulenberg [Mon, 15 Aug 2011 12:25:44 +0000 (14:25 +0200)] 
logger: improve descriptions on man page, sort the options, add -h and -V

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agologger: improve, sort and slice up usage() help text
Benno Schulenberg [Mon, 15 Aug 2011 12:04:20 +0000 (14:04 +0200)] 
logger: improve, sort and slice up usage() help text

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agofindmnt: slice up the help text into manageable chunks
Benno Schulenberg [Mon, 15 Aug 2011 11:39:33 +0000 (13:39 +0200)] 
findmnt: slice up the help text into manageable chunks

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agofindmnt: improve spelling, wording and order of help text
Benno Schulenberg [Mon, 15 Aug 2011 11:36:50 +0000 (13:36 +0200)] 
findmnt: improve spelling, wording and order of help text

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agolibmount: cut up mount's help text into manageable chunks
Benno Schulenberg [Mon, 15 Aug 2011 11:09:42 +0000 (13:09 +0200)] 
libmount: cut up mount's help text into manageable chunks

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agopo: do not search /samples/ subdirectories for translatable strings
Benno Schulenberg [Mon, 15 Aug 2011 11:00:18 +0000 (13:00 +0200)] 
po: do not search /samples/ subdirectories for translatable strings

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agohwclock: in man page move --date and --epoch from Functions to Options
Benno Schulenberg [Sat, 13 Aug 2011 20:00:41 +0000 (22:00 +0200)] 
hwclock: in man page move --date and --epoch from Functions to Options

Also improve the synopsis and some wording and a bit of formatting,
add the --help option, and say that --show is the default function.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agohwclock: when cutting up help texts anyway, do it into small chunks
Benno Schulenberg [Sat, 13 Aug 2011 19:02:15 +0000 (21:02 +0200)] 
hwclock: when cutting up help texts anyway, do it into small chunks

Also do it at sensible boundaries, improve some of the wording, and
indent continuation lines for clarity.  Also document -V instead of
-v for --version, to conform to the majority of utilities.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agogetopt: do not bundle help text lines into a single unwieldy chunk
Benno Schulenberg [Sat, 13 Aug 2011 18:11:21 +0000 (20:11 +0200)] 
getopt: do not bundle help text lines into a single unwieldy chunk

This undoes part of commit 283f8f0256655b73071290b92c58d998e883260a.
Help text lines are best gettextized separately, or in small chunks
of three to five lines, which are easily managed by translators.
Bundling text lines when nothing in those texts changed is discarding
translators' work unnecessarily.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agofsck: in man page say that "options take arguments", not vice versa
Benno Schulenberg [Sat, 13 Aug 2011 15:53:09 +0000 (17:53 +0200)] 
fsck: in man page say that "options take arguments", not vice versa

Also spell "filesystem" consistently as a single word, improve some
wordings here and there, and fix a few formatting and spacing issues.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agofsck: in usage() unmark type as optional for the -t option
Benno Schulenberg [Sat, 13 Aug 2011 15:15:42 +0000 (17:15 +0200)] 
fsck: in usage() unmark type as optional for the -t option

Also fix "specity" typo, spell "filesystem" consistently as one word,
swap the wording of one phrase, and use some semicolons for clarity.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agosfdisk: correct '--inside-order' to '--inside-outer' in documentation
Benno Schulenberg [Thu, 11 Aug 2011 19:47:15 +0000 (21:47 +0200)] 
sfdisk: correct '--inside-order' to '--inside-outer' in documentation

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoscript: normalize formatting of the man page
Benno Schulenberg [Wed, 10 Aug 2011 20:37:31 +0000 (22:37 +0200)] 
script: normalize formatting of the man page

Also improve the description of the --timing option,
and discard a then superfluous paragraph.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoscript: indicate that the file argument to --timing is optional
Benno Schulenberg [Wed, 10 Aug 2011 19:21:17 +0000 (21:21 +0200)] 
script: indicate that the file argument to --timing is optional

Also improve some other descriptions in the usage message.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agowrite: remove inconsistent periods from two error messages
Benno Schulenberg [Wed, 10 Aug 2011 19:13:44 +0000 (21:13 +0200)] 
write: remove inconsistent periods from two error messages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agohexdump: fix "beginnin" typo in usage message
Benno Schulenberg [Wed, 10 Aug 2011 19:12:56 +0000 (21:12 +0200)] 
hexdump: fix "beginnin" typo in usage message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agotailf: harmonize option argument and explanation in usage message
Benno Schulenberg [Wed, 10 Aug 2011 19:11:45 +0000 (21:11 +0200)] 
tailf: harmonize option argument and explanation in usage message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoul: remove superfluous return as usage() does not return
Benno Schulenberg [Wed, 10 Aug 2011 19:10:29 +0000 (21:10 +0200)] 
ul: remove superfluous return as usage() does not return

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoul: add -h and -V to the man page; use "file" and lowercase
Benno Schulenberg [Wed, 10 Aug 2011 19:07:13 +0000 (21:07 +0200)] 
ul: add -h and -V to the man page; use "file" and lowercase

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoul: make usage() say that more than one input file is allowed
Benno Schulenberg [Wed, 10 Aug 2011 19:06:07 +0000 (21:06 +0200)] 
ul: make usage() say that more than one input file is allowed

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoul: in usage() not overwriting but overriding is meant
Benno Schulenberg [Wed, 10 Aug 2011 19:04:42 +0000 (21:04 +0200)] 
ul: in usage() not overwriting but overriding is meant

Also always use lowercase.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agosfdisk: remove inconsistent and wasteful newlines in the _() calls
Benno Schulenberg [Wed, 10 Aug 2011 19:02:10 +0000 (21:02 +0200)] 
sfdisk: remove inconsistent and wasteful newlines in the _() calls

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agosfdisk: improve descriptions of options --no-reread and --show-extended
Benno Schulenberg [Wed, 10 Aug 2011 18:59:49 +0000 (20:59 +0200)] 
sfdisk: improve descriptions of options --no-reread and --show-extended

Also keep the two geometry options (-g and -G) together by moving -A.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agosfdisk: gettextize each warning as a whole
Benno Schulenberg [Wed, 10 Aug 2011 18:58:49 +0000 (20:58 +0200)] 
sfdisk: gettextize each warning as a whole

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agofdisksgilabel: correct the grammar of an error message
Benno Schulenberg [Wed, 10 Aug 2011 18:57:07 +0000 (20:57 +0200)] 
fdisksgilabel: correct the grammar of an error message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agomkfs.cramfs: clearer error message, "cannot close" instead of "closing"
Benno Schulenberg [Wed, 10 Aug 2011 18:55:48 +0000 (20:55 +0200)] 
mkfs.cramfs: clearer error message, "cannot close" instead of "closing"

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agopartx: do not print null
Davidlohr Bueso [Fri, 12 Aug 2011 19:36:50 +0000 (15:36 -0400)] 
partx: do not print null

Replace the annoying null output when displaying no partitions in verbose mode.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agogrammar fixes
Davidlohr Bueso [Fri, 12 Aug 2011 18:06:13 +0000 (14:06 -0400)] 
grammar fixes

Correct grammar from "cannot found" to "cannot find".

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agohexdump: fix segfault due to uninitialized memory
Petr Uzel [Wed, 10 Aug 2011 13:32:28 +0000 (15:32 +0200)] 
hexdump: fix segfault due to uninitialized memory

util-linux commit 85bf44b714ab184907eb448eba389218956d6a51
replaced all calls to emalloc() with xmalloc(), whose semantics
is however different - it does not zero allocated memory. This
made hexdump segfault if MALLOC_PERTURB_ was set.

Reported-by: Kyrill Detinov <lazy.kent@opensuse.org>
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=710877

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agodmesg: avoid mess at the end of dmesg output
Petr Uzel [Wed, 10 Aug 2011 12:16:40 +0000 (14:16 +0200)] 
dmesg: avoid mess at the end of dmesg output

Since util-linux commit a7ee94f2204011f26232ed3133514bf6e0d4a62c,
dmesg incorrectly calculates number of bytes that are remaining in the
buffer in get_next_record(). This could, under specific circumstances,
cause printing mess at the end of dmesg output:

> dmesg | tail
[ 1191.478725] Adding 285488k swap on /root/swapfile.  Priority:-2 extents:15 across:1186612k
[ 1205.588331] Adding 285488k swap on /root/swapfile.  Priority:-2 extents:15 across:1186612k
\xffffffba\xffffffba

Reported-by: Glenn Doig <doiggl@velocitynet.com.au>
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=710417

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agologger: use simple apostrophe instead of multibyte char in logger.1
Petr Uzel [Wed, 10 Aug 2011 11:46:06 +0000 (13:46 +0200)] 
logger: use simple apostrophe instead of multibyte char in logger.1

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agolibblkid: befs validate di_br_size !=0 and br_per_di_br != 0
Timo Warns [Tue, 9 Aug 2011 07:40:47 +0000 (09:40 +0200)] 
libblkid: befs validate di_br_size !=0 and br_per_di_br != 0

Validate that di_br_size !=0 and br_per_di_br != 0. If one of them is 0, a
division-by-zero error will be triggered.

Signed-off-by: Timo Warns <warns@pre-sense.de>
14 years agoipcs: use unsigned type for uid/gid
Karel Zak [Tue, 9 Aug 2011 13:30:19 +0000 (15:30 +0200)] 
ipcs: use unsigned type for uid/gid

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Tue, 9 Aug 2011 12:46:28 +0000 (14:46 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoswapon: missing separator in swapon -s command
Karel Zak [Tue, 9 Aug 2011 11:11:56 +0000 (13:11 +0200)] 
swapon: missing separator in swapon -s command

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=728963
Reported-by: Pavel Holica <pholica@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [loopdev.c] correct trivial typo
Davidlohr Bueso [Mon, 8 Aug 2011 03:16:19 +0000 (23:16 -0400)] 
lib: [loopdev.c] correct trivial typo

Should say "failed to find" instead of "failed to found".

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agolibmount: fix undefined sources
Davidlohr Bueso [Sun, 7 Aug 2011 00:10:26 +0000 (20:10 -0400)] 
libmount: fix undefined sources

The path resolving function breaks when handling undefined sources
("none") used by pseudo-filesystems. The assertion is causing the
samples/mount program to abort:

dave@offbook:~/projects/util-linux-good/libmount/samples$ ./mount
/dev/sda3 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
lt-mount: cache.c:464: mnt_resolve_path: Assertion `path' failed.
Aborted

/etc/mtab:

/dev/sda3 / ext4 rw,errors=remount-ro,commit=0 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
...

Instead of this assert on NULL we can simply return NULL and let mnt_pretty_path do the work.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agodocs: update exmaple files
Karel Zak [Mon, 8 Aug 2011 11:21:56 +0000 (13:21 +0200)] 
docs: update exmaple files

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: update list of pseudo-filesystems
Karel Zak [Mon, 8 Aug 2011 11:10:34 +0000 (13:10 +0200)] 
libmount: update list of pseudo-filesystems

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: un-deprecate kill(1)
Karel Zak [Mon, 8 Aug 2011 10:31:53 +0000 (12:31 +0200)] 
docs: un-deprecate kill(1)

 * util-linux kill implementation is used in many distributions

 * the latest active procps upstream (fork at http://gitorious.org/procps/)
   does not build kill(1) by default

 * util-linux implementation is actively improved and we follow Linux
   kernel features (e.g. RT signals, sigqueue(2) support, ...)

 * kill(1) is basic command without dependence on /proc, it does not make
   sense to have it in procps package.

... so it does not make sense to mark deprecate this code.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoagetty: improve login(1) argv[]
Karel Zak [Thu, 4 Aug 2011 16:37:25 +0000 (18:37 +0200)] 
agetty: improve login(1) argv[]

* fix regression: missing username should not be reported (EPERM) if
  -n/--skip-login is given and username is NULL.

* don't compose login options *string* if we can use argv *array* (the
  string is necessary only for --login-options).

* don't overwrite --login-options by --autologin

  The old code silently ignores login-options and "login -f <username>"
  is always used.

  The new code uses:
    a) "login -f <username>"    by default
    b) "login <login-options>"  for --login-options + --autologin

  where for b) the username from "--autologin <username>" is used to
  replace \u magic string in <login-options>.

* the \u could be used more than once in one login argv string, for
  example: agetty --login-options "-o user=\\u,name=\\u --foo"

* the space in --login-options is correctly ignored, for example
  agetty --login-options " hello world ".

Reviewed-by: Voelker, Bernhard <bernhard.voelker@siemens-enterprise.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Mon, 8 Aug 2011 10:03:52 +0000 (12:03 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomkfs: fix small formatting issues in man page
Benno Schulenberg [Wed, 3 Aug 2011 14:10:13 +0000 (16:10 +0200)] 
mkfs: fix small formatting issues in man page

Also spell "filesystem" consistently as one word -- this makes
things clearer when the word is used as an adjective.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agoisosize: improve style, grammar and spacing of man page
Benno Schulenberg [Wed, 3 Aug 2011 13:51:02 +0000 (15:51 +0200)] 
isosize: improve style, grammar and spacing of man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agoionice: slightly improve grammar, spacing and consistency of man page
Benno Schulenberg [Wed, 3 Aug 2011 13:35:23 +0000 (15:35 +0200)] 
ionice: slightly improve grammar, spacing and consistency of man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agotaskset: adjust style of man page
Benno Schulenberg [Wed, 3 Aug 2011 09:17:47 +0000 (11:17 +0200)] 
taskset: adjust style of man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agochrt: adjust style of man page, alphabetize option -p
Benno Schulenberg [Wed, 3 Aug 2011 09:17:11 +0000 (11:17 +0200)] 
chrt: adjust style of man page, alphabetize option -p

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agowipefs: change option -v to -V for --version; add it to man page
Benno Schulenberg [Wed, 3 Aug 2011 08:23:08 +0000 (10:23 +0200)] 
wipefs: change option -v to -V for --version; add it to man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agofindmnt: (man page) short option for --timeout is not -t but -w
Benno Schulenberg [Mon, 1 Aug 2011 19:31:35 +0000 (21:31 +0200)] 
findmnt: (man page) short option for --timeout is not -t but -w

Additionally make some formatting and spacing tweaks.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agocal.c: fix typo ("fistt day") in help text, seize chance to improve it
Benno Schulenberg [Mon, 1 Aug 2011 18:41:12 +0000 (20:41 +0200)] 
cal.c: fix typo ("fistt day") in help text, seize chance to improve it

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agoagetty: C.UTF-8 locale instead of en_US.UTF-8
Samuel Thibault [Wed, 3 Aug 2011 23:12:50 +0000 (01:12 +0200)] 
agetty: C.UTF-8 locale instead of en_US.UTF-8

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
14 years agoagetty: only enable F_UTF8 if kernel has already set IUTF8.
Samuel Thibault [Wed, 3 Aug 2011 23:11:02 +0000 (01:11 +0200)] 
agetty: only enable F_UTF8 if kernel has already set IUTF8.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
14 years agowall: build with SUID_{C,LD}FLAGS
Petr Uzel [Tue, 2 Aug 2011 13:27:32 +0000 (15:27 +0200)] 
wall: build with SUID_{C,LD}FLAGS

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agolook: fix manpage formatting
Petr Uzel [Tue, 2 Aug 2011 12:56:06 +0000 (14:56 +0200)] 
look: fix manpage formatting

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agocal: fix manpage formatting
Petr Uzel [Tue, 2 Aug 2011 12:55:55 +0000 (14:55 +0200)] 
cal: fix manpage formatting

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agodocs: remove README.namei
Sami Kerola [Tue, 2 Aug 2011 12:30:52 +0000 (14:30 +0200)] 
docs: remove README.namei

Since rewrite (commit c84a633) the readme file has not made sense.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochrt: silently ignore -R if unsupported
Karel Zak [Tue, 2 Aug 2011 12:29:03 +0000 (14:29 +0200)] 
chrt: silently ignore -R if unsupported

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoagetty: Fix IUTF8 flag
Werner Fink [Tue, 2 Aug 2011 12:20:31 +0000 (14:20 +0200)] 
agetty: Fix IUTF8 flag

Preserve IUTF8 as set up by the kernel, which knows which consoles are
in utf8 mode.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Werner Fink <werner@suse.de>
14 years agofsck: use same word category in message, and add translators comment
Benno Schulenberg [Sun, 31 Jul 2011 19:27:58 +0000 (21:27 +0200)] 
fsck: use same word category in message, and add translators comment

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agotextual: add some guiding comments for translators
Benno Schulenberg [Sat, 30 Jul 2011 19:28:07 +0000 (21:28 +0200)] 
textual: add some guiding comments for translators

These are picked up by xgettext and put in the POT file.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agopo: also extract plural messages from the C files
Benno Schulenberg [Sat, 30 Jul 2011 19:27:16 +0000 (21:27 +0200)] 
po: also extract plural messages from the C files

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agouuidd: distinguish between singular and plural in three messages
Benno Schulenberg [Sat, 30 Jul 2011 17:21:52 +0000 (19:21 +0200)] 
uuidd: distinguish between singular and plural in three messages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agoinclude: [nls.h] define a macro for handling plurals with ngettext()
Benno Schulenberg [Sat, 30 Jul 2011 17:20:58 +0000 (19:20 +0200)] 
include: [nls.h] define a macro for handling plurals with ngettext()

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agowipefs: gettextize one sentence as a whole
Benno Schulenberg [Sat, 30 Jul 2011 15:17:26 +0000 (17:17 +0200)] 
wipefs: gettextize one sentence as a whole

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agofstrim: correct mistaken grammar in one message
Benno Schulenberg [Sat, 30 Jul 2011 15:16:09 +0000 (17:16 +0200)] 
fstrim: correct mistaken grammar in one message

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agolsblk: correct mistaken word
Benno Schulenberg [Sat, 30 Jul 2011 15:13:27 +0000 (17:13 +0200)] 
lsblk: correct mistaken word

Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agopartx: switch on localization
Benno Schulenberg [Sat, 30 Jul 2011 13:35:16 +0000 (15:35 +0200)] 
partx: switch on localization

Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agomkswap: Use c.h
maximilian attems [Sun, 31 Jul 2011 10:47:21 +0000 (12:47 +0200)] 
mkswap: Use c.h

Fixes mkswap compilation against klibc.

Signed-off-by: maximilian attems <max@stro.at>
14 years agoinclude: [c.h] Include stdlib.h unconditionaly
maximilian attems [Sun, 31 Jul 2011 10:47:20 +0000 (12:47 +0200)] 
include: [c.h] Include stdlib.h unconditionaly

No point in hiding it down in an ifdef maze,
as it may get used by exit(3).

Signed-off-by: maximilian attems <max@stro.at>
14 years agoinclude: [c.h] move up declaration of program_invocation_short_name before usage
maximilian attems [Sun, 31 Jul 2011 10:47:19 +0000 (12:47 +0200)] 
include: [c.h] move up declaration of program_invocation_short_name before usage

fixes:
../include/c.h: In function ‘errmsg’:
../include/c.h:111:26: error: ‘program_invocation_short_name’ undeclared
(first use in this function)
../include/c.h:111:26: note: each undeclared identifier is reported only
once for each function it appears in

Signed-off-by: maximilian attems <max@stro.at>
14 years agopg: fix compiler warnings [-Wunused-result]
Karel Zak [Tue, 2 Aug 2011 11:55:30 +0000 (13:55 +0200)] 
pg: fix compiler warnings [-Wunused-result]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: [writeall] add fwrite_all()
Karel Zak [Tue, 2 Aug 2011 11:53:41 +0000 (13:53 +0200)] 
include: [writeall] add fwrite_all()

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: fix compiler warnings [-Wunused-parameter -Wsign-compare]
Karel Zak [Tue, 2 Aug 2011 11:29:29 +0000 (13:29 +0200)] 
libblkid: fix compiler warnings [-Wunused-parameter -Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: [superblocks] fix compiler warnings [-Wunused-parameter -Wsign-compare]
Karel Zak [Tue, 2 Aug 2011 11:28:04 +0000 (13:28 +0200)] 
libblkid: [superblocks] fix compiler warnings [-Wunused-parameter -Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: [partitions] fix compiler warnings [-Wunused-parameter -Wsign-compare]
Karel Zak [Tue, 2 Aug 2011 11:22:30 +0000 (13:22 +0200)] 
libblkid: [partitions] fix compiler warnings [-Wunused-parameter -Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: [topology] fix compiler warnings [-Wunused-parameter -Wsign-compare]
Karel Zak [Tue, 2 Aug 2011 11:20:54 +0000 (13:20 +0200)] 
libblkid: [topology] fix compiler warnings [-Wunused-parameter -Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: [bitops.h] make return values consistent
Karel Zak [Tue, 2 Aug 2011 10:30:57 +0000 (12:30 +0200)] 
include: [bitops.h] make return values consistent

The *_to_cpu() and cpu_to_*() macros have to return always the same date types
independently on CPU type.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: fix compiler warnings [-Wunused-parameter -Wsign-compare]
Karel Zak [Tue, 2 Aug 2011 09:21:16 +0000 (11:21 +0200)] 
libmount: fix compiler warnings [-Wunused-parameter -Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochrt: [selinux] fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 14:23:53 +0000 (16:23 +0200)] 
chrt: [selinux] fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochsh: fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 14:20:28 +0000 (16:20 +0200)] 
chsh: fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochfn: fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 14:19:54 +0000 (16:19 +0200)] 
chfn: fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolast: fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 13:39:55 +0000 (15:39 +0200)] 
last: fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agologin: fix compiler warnings [-Wunused-parameter -Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 13:36:17 +0000 (15:36 +0200)] 
login: fix compiler warnings [-Wunused-parameter -Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: fix compiler warnings [-Wunused-parameter]
Karel Zak [Mon, 1 Aug 2011 13:21:17 +0000 (15:21 +0200)] 
cfdisk: fix compiler warnings [-Wunused-parameter]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofdisk: fix compiler warnings [-Wunused-parameter -Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 13:19:53 +0000 (15:19 +0200)] 
fdisk: fix compiler warnings [-Wunused-parameter -Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: fix compiler warnings [-Wunused-parameter]
Karel Zak [Mon, 1 Aug 2011 12:57:05 +0000 (14:57 +0200)] 
tests: fix compiler warnings [-Wunused-parameter]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoswaplabel: fix compiler warnings [-Wunused-parameter]
Karel Zak [Mon, 1 Aug 2011 12:54:45 +0000 (14:54 +0200)] 
swaplabel: fix compiler warnings [-Wunused-parameter]

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