Commit Graph

357 Commits

Author SHA1 Message Date
Karel Zak 1eca726f65 build-sys: add ${AC,AP,AM,AH}_OPTS to autogen.sh
With this patch, you can define autotool options when you
need to generate build-system. For example:

  $ AM_OPTS="--copy" ./autogen.sh

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-25 18:45:01 +02:00
Moritz Muehlenhoff 6a4c63d9d9 agetty: 8 bit characters on the Linux console lead to input corruption
8 bit characters on the Linux console lead to input corruption (e.g.
German umlauts). This is easily reproducable by inserting a login name with
umlaut and typing backspace afterwards.

agetty supports tty parity, which leads to getty treating these characters
as a 7bit char with set parity.

This patch by Samuel Thibault adds a new option -8 which disables parity
detection for ttys not used for serial logins.

| Note: With this patch, 8bit characters are just silently dropped (that's
| the expected getty behavior), this is quite neat since you then don't
| even need to backspace your 8bit characters :)

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
2007-07-25 18:34:39 +02:00
Pádraig Brady e8953ba8b9 look: man page clarification
* misc-utils/look.1: Clarify the default state of the -d and -f options

Signed-Off-By: Pádraig Brady <P@draigBrady.com>
2007-07-25 18:03:52 +02:00
Karel Zak f88c89db4f mkswap: fix signedness problems and remove obsolete code
The UUID is unsigned char *

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-25 17:18:57 +02:00
Matthias Koenig 8dbfe5a1fe ionice: cleanup usage for idle class
The idle class has no class data. It will print a warning if
a prio argument is given for it, since this will be ignored.
Output for idle class will not contain prio data.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2007-07-25 16:44:17 +02:00
Matthias Koenig 8bbbb5e3ee mount: update xfs mount options
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2007-07-25 16:01:13 +02:00
Karel Zak 7baec9a561 script: improve quiet mode
script(1) is not consistent and writes "Script started on.." to
scriptfile, although the others messages are ignored when running
with '-q'.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-24 15:22:57 +02:00
Matthias Koenig 30294a2fe8 mkswap: default to V1 in any case
mkswap(8) enforces to use v0 swap format when pagesize > 16kB.
(use case might be ppc64 with CONFIG_PPC_64K_PAGES).

As version 0 swap is not supported anymore by recent kernels, the
behaviour in this case is rather strange.

Here is a testcase:

for i in 4 8 16 32 64; do mkswap -p `expr $i \* 1024` ./swap.file; done
Setting up swapspace version 1, size = 4294963 kB

Using user-specified page size 8192, instead of the system values
4096/4096
Setting up swapspace version 1, size = 4294959 kB

Using user-specified page size 16384, instead of the system values
4096/4096
Setting up swapspace version 1, size = 4294950 kB

Using user-specified page size 32768, instead of the system values
4096/4096
Setting up swapspace version 0, size = 4294934 kB

Using user-specified page size 65536, instead of the system values
4096/4096
Setting up swapspace version 0, size = 4294901 kB

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-24 14:59:32 +02:00
Matthias Koenig 5a3009cad6 readprofile: fix on ppc64
Fix inconsistency between kernel profiling and readprofile.
The range of kernel profiling is between _stext and _etext,
and readprofile tries to extract profiling for all the symbols in
/boot/System.map-2.6.16.11-7-ppc64 from /proc/profile, but there
are more symbols in /boot/System.map-2.6.16.11-7-ppc64 than those
between _stext and _etext.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-24 14:28:40 +02:00
LaMont Jones 0c1a6f8835 manpage typos
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
2007-07-24 13:51:06 +02:00
LaMont Jones 7965463a99 mount: mention hfsplus in mount manpage
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
2007-07-24 00:24:05 +02:00
LaMont Jones dd0d165479 logger: use snprintf instead of sprintf in logger.c
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-24 00:22:20 +02:00
Karel Zak 19eecef2f9 fdisk: cleanup partname.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-23 23:55:37 +02:00
Matthias Koenig 4fd4e8d357 fdisk: add support for udev persistent device names
udev names partitions with the extension "-partN" (where N is a
partition number).

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2007-07-23 23:47:33 +02:00
Karel Zak a2c6354ff7 tests: use $AWK based on configure results
The hardcoded "gawk" seems like a bad idea.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-23 15:07:13 +02:00
Karel Zak 93a024e4db tests: add license notices, change from gplv2-only to gplv2-or-later
The previous "gplv2-only" was copy&past mistake. This re-licensing is
correct -- there is not any other contributor to this code.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-23 15:04:59 +02:00
Karel Zak 92f2c23e68 tests: add license notices, change from gplv2-only to gplv2-or-later
The previous "gplv2-only" was copy&past mistake. This re-licensing is
correct -- there is not any other contributor to this code.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-23 14:31:14 +02:00
Gabriel Barazer 392f76cf9a build-sys: missing header when NLS is disabled
Compiling utils fail when disable NLS with the --disable-nls switch.
"mkfs.c:46: error: 'LC_ALL' undeclared (first use in this function)"
It is due to a missing locale.h header : When enabling NLS, nls.h
includes libintl.h, which in turn includes locale.h. When disabling NLS,
libintl.h isn't anymore included nor locale.h, which is needed for the
setlocale() calls.

Signed-off-by: Gabriel Barazer <gabriel@oxeva.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-23 14:03:13 +02:00
Mike Frysinger d6ca1ec176 tests: use relative paths when sourcing files
The "." command will search $PATH before $PWD if the argument
specified contains no path qualifiers which can cause problems if
you happen to have something in $PATH named the same.  The
attached patch changes all of the ".  <foo>" in the tests subdir.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2007-07-23 13:55:36 +02:00
Karel Zak cf0a5736c8 cytune: remove linux/tty.h inclusion
The <linux/tty.h> file is empty. It's __KERNEL__ only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-19 00:38:00 +02:00
Karel Zak 22d36665c4 build-sys: remove asm/page.h test
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-18 23:33:55 +02:00
Karel Zak 9dc801d2b7 build-sys: add warning when libuuid is not found
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-18 10:46:42 +02:00
Karel Zak ff5cc6f574 build-sys: release++
Increment release number to v2.13-rc2.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-17 13:22:11 +02:00
Karel Zak aedd4ddc77 po: update po files
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-17 13:17:16 +02:00
Karel Zak cceaba68db docs: update release notes
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-17 13:11:19 +02:00
Karel Zak 1ed485b571 login-utils: remove deprecated sigsetmask() from wall
The sigsetmask() is deprecated in favor of sigprocmask().

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-17 11:44:34 +02:00
Mike Frysinger cc2ce9454a fdisk: check returns in fdisk from partition changes
currently the code in fdisk which changes partition types is a bit fragile ...
it assumes the partition type succeeded instead of checking the user input or
for errors.  ive tweaked the sub functions to return a value indicative of the
functions' success and fdisk now checks/reports based on that.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2007-07-16 23:03:45 +02:00
Matthias Koenig 697d58e867 schedutils: fix chrt docs and pid=0 usage
Fix some documentation bugs for chrt.
Make it work with PID 0, which means current process.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2007-07-16 15:12:36 +02:00
Matthias Koenig dfcd918b6e mount: add acl option documentation for ext3 and reiserfs
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2007-07-16 15:10:24 +02:00
Karel Zak 529bdd94f4 login-utils: remove unwanted newlines from wall
Prevent wall from adding an empty newline to every new line.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-16 14:52:18 +02:00
Karel Zak 65c381e984 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-16 13:56:08 +02:00
Bernhard Walle 7670038954 misc-util: new rtcwake command
Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-16 13:50:33 +02:00
Karel Zak 4dfadf9c3a ionice: prefer SYS_ioprio_{set,get} from glibc to hardcoded version
It's better to use glibc SYS_ioprio_{set,get} definitions rather than an
incomplete (not all archs) and hardcoded version from ionice.c.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-16 12:22:54 +02:00
Karel Zak 62f0ec7b4a build-sys: remove "make mrproper", git-clean is good enough
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-12 14:31:26 +02:00
Karel Zak 6a97809b9f sys-utils: add arch(1) back to the official tree
This patch add arch(1) back to util-linux source code tree, but the
command is not installed by defautl.

For more details see "./configure --help".

The arch command is deprecated in favor of "uname -m" (coreutils). The
latest (6.9+) version of coreutils also supports arch(1) as an alias
to "uname -a". Please, if you need arch(1) use the coreutils
implementation.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-11 12:37:40 +02:00
Karel Zak 7dff8582f8 whereis: add lib64 paths
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-11 11:15:45 +02:00
Karel Zak db0aaaa6a8 build-sys: remove libtool
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-11 00:59:49 +02:00
Karel Zak fd71c65963 tests: remove dependence on helpers/libpreload-time.so
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-10 23:51:12 +02:00
Karel Zak 7e7f73cf9d cal: add test code
This patch allows to override the time() and define a different time by
TEST_TIME env. variable.  The code has to be compiled with -DTEST_CAL.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-10 23:20:42 +02:00
Mike Frysinger db94975b59 also search for __stext in readprofile
Some architectures have a single underscore prefix in their ABI, so there will
be no "_stext" symbol, just "__stext".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2007-07-10 14:12:44 +02:00
Masatake YAMATO d33279c2e3 lomount.c: don't use mlockall if CRYPT_NONE
loop back mounting emits two system calls: mount and mlockall.
mount is obviously needed. mlockall is needed for encryption.
As the result both CAP_SYS_ADMIN and CAP_IPC_LOCK are needed
to do loopback mounting.

The problem is that CAP_IPC_LOCK is always needed through my
command doesn't need encryption.

With the following patch, mount calls mlockall only when
encryption is needed.

Signed-off-by: Masatake YAMATO <jet@gyve.org>
2007-07-10 14:05:45 +02:00
H. Peter Anvin bb6aacfeca fdisk: when generating a DOS disk label, give it an ID
Newer Micro$oft operating systems (NT 3 and later) put a 4-byte
signature in the MBR at offset 440 decimal.  Generate a random such
signature when creating a new disk label, and allow it to be changed.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-10 13:29:29 +02:00
H. Peter Anvin bba382aafe fdisk: do not complain about regular files
fdisk complains that it doesn't understand regular files.  This can
be trivially fixed.

Also, modes are conventionally given in octal, not hex.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2007-07-10 13:11:13 +02:00
Karel Zak 5196eb4b00 docs: add release notes
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 23:16:13 +02:00
Karel Zak 6a5486fded docs: cleanup before release
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 14:15:08 +02:00
Karel Zak b622c840d3 docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 01:55:06 +02:00
Karel Zak 0027a8b16f po: update po files
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 01:48:28 +02:00
Karel Zak a5b47e0a39 setarch: add NLS support
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 01:36:03 +02:00
Karel Zak 86d62711a9 man pages: add "AVAILABILITY" section
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 01:17:04 +02:00
Karel Zak 2e039577c5 mount: use loop= option when mounting by /sbin/mount.<type>
The mount(8) calls external mount programs (/sbin/mount.<type>)
without the loop=/dev/loopN option. This patch fix this bug.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-02 23:35:08 +02:00