Commit Graph

3455 Commits

Author SHA1 Message Date
Sami Kerola 22a3b8c9bd docs: new file Documentation/howto-compilation.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-23 21:34:20 +02:00
Sami Kerola 28a6074b4c docs: tell what the Documentation/ is about
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-23 21:34:20 +02:00
Sami Kerola e1271f8ddc docs: add usage() howto for contributors
Style instructions to usage() writers. Discussion about this;
http://www.spinics.net/lists/util-linux-ng/index.html#04983

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-23 21:34:13 +02:00
Sami Kerola f98d4f766e docs: Documentation directory added
Move readme, licence, change log, relese notes and other
supplementary files to a Documentation directory. This commit
does not change contents of any other but few Makefile.am files.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-12 20:19:52 +02:00
Sami Kerola fbcdec48e4 docs: remove README.clear
The clear command has not been part of util-linux since 2.13-pre4
which is Sep 2005 in human format.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-12 20:16:33 +02:00
Karel Zak 344f73442d ipcs: use unsigned type for uid/gid
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-09 15:30:19 +02:00
Karel Zak 2daef873d8 docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-09 14:46:28 +02:00
Karel Zak 09e8b3852c 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>
2011-08-09 13:11:56 +02:00
Davidlohr Bueso ad2d0d8587 lib: [loopdev.c] correct trivial typo
Should say "failed to find" instead of "failed to found".

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-08-08 13:53:59 +02:00
Davidlohr Bueso ff62fc46b4 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>
2011-08-08 13:53:46 +02:00
Karel Zak c79430cdec docs: update exmaple files
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-08 13:21:56 +02:00
Karel Zak 854fa6d99f libmount: update list of pseudo-filesystems
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-08 13:10:34 +02:00
Karel Zak 32fca0e9c4 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>
2011-08-08 12:40:06 +02:00
Karel Zak 9aeb66dc6b 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>
2011-08-08 12:07:07 +02:00
Karel Zak baecaf21ce docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-08 12:03:52 +02:00
Benno Schulenberg c181c31dd9 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>
2011-08-08 11:58:55 +02:00
Benno Schulenberg 3b683597ca isosize: improve style, grammar and spacing of man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-08 11:58:53 +02:00
Benno Schulenberg a92eea152b ionice: slightly improve grammar, spacing and consistency of man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-08 11:58:51 +02:00
Benno Schulenberg 64109bbaf5 taskset: adjust style of man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-08 11:58:50 +02:00
Benno Schulenberg 397a511458 chrt: adjust style of man page, alphabetize option -p
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-08 11:58:48 +02:00
Benno Schulenberg 11295cd102 wipefs: change option -v to -V for --version; add it to man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-08 11:58:47 +02:00
Benno Schulenberg de9501ab10 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>
2011-08-08 11:58:43 +02:00
Benno Schulenberg 19d646f417 cal.c: fix typo ("fistt day") in help text, seize chance to improve it
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-08 11:58:42 +02:00
Samuel Thibault b0198a1163 agetty: C.UTF-8 locale instead of en_US.UTF-8
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2011-08-08 11:50:21 +02:00
Samuel Thibault 7478fce029 agetty: only enable F_UTF8 if kernel has already set IUTF8.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2011-08-08 11:49:58 +02:00
Petr Uzel e3c5ef39e3 wall: build with SUID_{C,LD}FLAGS
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-08-08 11:49:43 +02:00
Petr Uzel 56cdb3f357 look: fix manpage formatting
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-08-08 11:49:41 +02:00
Petr Uzel b881ebc69a cal: fix manpage formatting
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-08-08 11:49:38 +02:00
Sami Kerola d1a1e0b716 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>
2011-08-02 14:30:52 +02:00
Karel Zak c150589fce chrt: silently ignore -R if unsupported
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 14:29:03 +02:00
Werner Fink 8408647d89 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>
2011-08-02 14:20:31 +02:00
Benno Schulenberg fcc058f4b3 fsck: use same word category in message, and add translators comment
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Benno Schulenberg f14f02f581 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>
2011-08-02 14:13:44 +02:00
Benno Schulenberg b1262a4803 po: also extract plural messages from the C files
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Benno Schulenberg 0149cd8468 uuidd: distinguish between singular and plural in three messages
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Benno Schulenberg 27cc25474f include: [nls.h] define a macro for handling plurals with ngettext()
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Benno Schulenberg 340b3b0a68 wipefs: gettextize one sentence as a whole
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Benno Schulenberg 79d5a3b47f fstrim: correct mistaken grammar in one message
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:44 +02:00
Benno Schulenberg 1117f18f8e lsblk: correct mistaken word
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:43 +02:00
Benno Schulenberg 5c87aa1a27 partx: switch on localization
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-02 14:13:39 +02:00
maximilian attems 086752639d mkswap: Use c.h
Fixes mkswap compilation against klibc.

Signed-off-by: maximilian attems <max@stro.at>
2011-08-02 13:58:54 +02:00
maximilian attems 4d49851351 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>
2011-08-02 13:58:46 +02:00
maximilian attems 4b2b671697 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>
2011-08-02 13:58:24 +02:00
Karel Zak ba14e04d72 pg: fix compiler warnings [-Wunused-result]
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 13:55:30 +02:00
Karel Zak 330f543985 include: [writeall] add fwrite_all()
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 13:53:41 +02:00
Karel Zak c9f51c712f libblkid: fix compiler warnings [-Wunused-parameter -Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 13:29:29 +02:00
Karel Zak 538a2fe950 libblkid: [superblocks] fix compiler warnings [-Wunused-parameter -Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 13:28:04 +02:00
Karel Zak 01fb8c0045 libblkid: [partitions] fix compiler warnings [-Wunused-parameter -Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 13:22:30 +02:00
Karel Zak f64ad71c9d libblkid: [topology] fix compiler warnings [-Wunused-parameter -Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 13:20:54 +02:00
Karel Zak d1425592a2 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>
2011-08-02 12:33:10 +02:00