]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Thu, 27 Oct 2011 15:46:47 +0000 (17:46 +0200)]
build-sys: add UL_BUILD_INIT macro
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 15:04:49 +0000 (17:04 +0200)]
build-sys: cleanup BUILD_HWCLOCK
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:50:54 +0000 (16:50 +0200)]
build-sys: cleanup BUILD_{WALL,WRITE}
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:49:32 +0000 (16:49 +0200)]
build-sys: cleanup BUILD_SCHEDUTILS
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:31:36 +0000 (16:31 +0200)]
build-sys: move --with-* before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:28:35 +0000 (16:28 +0200)]
build-sys: cleanup BUILD_LOGIN_UTILS
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:19:14 +0000 (16:19 +0200)]
build-sys: cleanup BUILD_{RENAME,RESET}
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:18:12 +0000 (16:18 +0200)]
build-sys: cleanup BUILD_{LAST,LINE,MESG}
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:16:02 +0000 (16:16 +0200)]
build-sys: cleanup BUILD_KILL, enable kill(1) by default
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:10:55 +0000 (16:10 +0200)]
build-sys: cleanup BUILD_ELVTUNE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:07:50 +0000 (16:07 +0200)]
build-sys: cleanup BUILD_PIVOT_ROOT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:05:41 +0000 (16:05 +0200)]
build-sys: cleanup BUILD_SWITCH_ROOT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 14:02:29 +0000 (16:02 +0200)]
build-sys: cleanup BUILD_CRAMFS
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 13:57:18 +0000 (15:57 +0200)]
build-sys: cleanup BUILD_{DDATE,AGETTY}
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 13:56:05 +0000 (15:56 +0200)]
build-sys: cleanup BUILD_ARCH
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 13:51:28 +0000 (15:51 +0200)]
build-sys: cleanup BUILD_UNSHARE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 13:48:51 +0000 (15:48 +0200)]
build-sys: cleanup BUILD_FALLOCATE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 13:13:40 +0000 (15:13 +0200)]
build-sys: cleanup HAVE_LIBCRYPT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 13:09:59 +0000 (15:09 +0200)]
chsh: remove non-PAM code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 13:06:49 +0000 (15:06 +0200)]
chfn: remove non-PAM code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:59:20 +0000 (14:59 +0200)]
login: remove unnecessary ifdef HAVE_CRYPT_H
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:53:06 +0000 (14:53 +0200)]
build-sys: move structs, types, descs checks before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:48:49 +0000 (14:48 +0200)]
build-sys: move type checks before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:44:30 +0000 (14:44 +0200)]
build-sys: move gettext check before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:40:00 +0000 (14:40 +0200)]
build-sys: cleanup BUILD_{LS,CH}CPU
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:31:34 +0000 (14:31 +0200)]
build-sys: cleanup BUILD_MOUNTPOINT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:28:59 +0000 (14:28 +0200)]
build-sys: cleanup misc-utils/Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:28:27 +0000 (14:28 +0200)]
docs: add note about BUILD_* macros
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:20:35 +0000 (14:20 +0200)]
build-sys: cleanup BUILD_LSBLK
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 12:17:00 +0000 (14:17 +0200)]
build-sys: cleanup BUILD_UUIDD
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 11:45:42 +0000 (13:45 +0200)]
build-sys: cleanup BUILD_LIBMOUNT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 10:55:05 +0000 (12:55 +0200)]
build-sys: use $build_libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 10:52:01 +0000 (12:52 +0200)]
build-sys: cleanup BUILD_PARTX
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 10:44:06 +0000 (12:44 +0200)]
build-sys: cleanup BUILD_FSCK
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 10:39:30 +0000 (12:39 +0200)]
build-sys: cleanup BUILD_MOUNT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 10:08:01 +0000 (12:08 +0200)]
build-sys: cleanup BUILD_RAW
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 09:10:53 +0000 (11:10 +0200)]
build-sys: remove unnecessary perl check
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 09:06:08 +0000 (11:06 +0200)]
docs: add howto-build-sys.txt
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 08:45:04 +0000 (10:45 +0200)]
build-sys: add UL_REQUIRES_* macros
UL_REQUIRES_{LINUX,BUILD,HAVE} macros check for dependence between
--enable-* state and OS type, another build (e.g. libblkid), function
or library.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Oct 2011 08:32:24 +0000 (10:32 +0200)]
build-sys: move --enable-lib{mount,uuid,blkid} before others --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Oct 2011 15:00:32 +0000 (17:00 +0200)]
build-sys: rename and move macros
- use m4/ul.m4 for util-linux macros
- use UL_ prefix for all util-linux macros
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 2 Nov 2011 18:15:27 +0000 (19:15 +0100)]
ldattach: add default case to switches
The warnings bellow are about impossible case, so makign abort() as
default seems correct.
ldattach.c:305:2: warning: switch missing default case [-Wswitch-default]
ldattach.c:313:2: warning: switch missing default case [-Wswitch-default]
ldattach.c:321:2: warning: switch missing default case [-Wswitch-default]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 2 Nov 2011 18:07:34 +0000 (19:07 +0100)]
ldattach: convert debug macro to function
warning: ISO C does not permit named variadic macros
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 1 Nov 2011 20:32:54 +0000 (21:32 +0100)]
ldattach: check numeric user inputs with strtol_or_err
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 1 Nov 2011 20:17:58 +0000 (21:17 +0100)]
ldattach: align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 1 Nov 2011 19:45:19 +0000 (20:45 +0100)]
ldattach: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 31 Oct 2011 21:13:24 +0000 (22:13 +0100)]
docs: add long options to readprofile.8
Additionally align with with howto-man-page.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 31 Oct 2011 20:52:56 +0000 (21:52 +0100)]
readprofile: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 31 Oct 2011 20:38:11 +0000 (21:38 +0100)]
readprofile: use libc error printing facilities
This commit also changes all exit values to be symbolic.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 31 Oct 2011 20:12:30 +0000 (21:12 +0100)]
readprofile: add long options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 15:41:21 +0000 (16:41 +0100)]
docs: align tunelp.8 with howto-man-page.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 15:25:16 +0000 (16:25 +0100)]
docs: add long options to tunelp.8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 15:03:19 +0000 (16:03 +0100)]
tunelp: add long options and align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 14:19:59 +0000 (15:19 +0100)]
tunelp: use libc error printing facilities
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Petr Uzel [Tue, 1 Nov 2011 15:29:42 +0000 (16:29 +0100)]
dmesg: fix printing of multibyte characters
Also make it compile if HAVE_WIDECHAR is not defined.
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=725993
Reported-by: Harald Koenig <koenig@linux.de>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Davidlohr Bueso [Wed, 26 Oct 2011 14:26:49 +0000 (16:26 +0200)]
docs: update TODO file
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Wed, 2 Nov 2011 15:22:44 +0000 (16:22 +0100)]
partx: use USAGE_ macros
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 26 Oct 2011 13:58:18 +0000 (15:58 +0200)]
lsblk: remove __NCOLUMNS
We use ARRAY_SIZE() instead to define the amount of available columns.
[kzak@redhat.com: - fix compiler warnings [-Wsign-compare]]
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 26 Oct 2011 13:57:38 +0000 (15:57 +0200)]
partx: remove __NCOLUMNS
We use ARRAY_SIZE() instead to define the amount of available columns.
[kzak@redhat.com: - fix compiler warnings [-Wsign-compare]]
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Nov 2011 14:51:45 +0000 (15:51 +0100)]
fsck: use FS blacklist for non-all mode too
Reported-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 30 Oct 2011 14:08:18 +0000 (15:08 +0100)]
tunelp: use symbolic exit values
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 14:02:00 +0000 (15:02 +0100)]
tunelp: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 13:47:31 +0000 (14:47 +0100)]
switch_root: add nls support
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 13:45:14 +0000 (14:45 +0100)]
switch_root: align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 13:35:06 +0000 (14:35 +0100)]
unshare: align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 13:23:54 +0000 (14:23 +0100)]
rtcwake: align with howto-usage-function.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 30 Oct 2011 13:08:33 +0000 (14:08 +0100)]
setsid: add long options and fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 7 Oct 2011 15:56:27 +0000 (17:56 +0200)]
login: cosmetic changes in docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 22:56:32 +0000 (00:56 +0200)]
login: use ENV_PATH and ENV_{ROOT,SU}PATH from login.defs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 22:56:32 +0000 (00:56 +0200)]
login: add -H option for compatibility with Suse
Note that our login(1) uses hostname without domain, so:
"foo login: "
this is compatible with the default agetty(8) behavior.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 22:30:45 +0000 (00:30 +0200)]
login: use LOG_UNKFAIL_ENAB from login.defs, improve logging
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 21:50:12 +0000 (23:50 +0200)]
login: use DEFAULT_HOME from login.defs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 21:39:14 +0000 (23:39 +0200)]
login: use HUSHLOGIN_FILE from login.defs
Note that Suse login(1) does not use any default for HUSHLOGIN_FILE.
We use /etc/hushlogins and ~/.hushlogin as default.
The another difference is that *empty* global (e.g. /etc/hushlogins)
means that hushed mode will be enabled for all accounts.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 21:07:45 +0000 (23:07 +0200)]
login: use TTYGROUP from login.defs
Note that Suse login(1) does not use any default for TTYGROUP, it
means that TTYGROUP has to be explicitly defined otherwise user\'s
primary group is used.
The util-linux login(1) uses 'tty' group name as a default value.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 11:56:09 +0000 (13:56 +0200)]
login: use TTYPERM from login.defs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 11:41:40 +0000 (13:41 +0200)]
login: use FAIL_DELAY from login.defs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 11:38:15 +0000 (13:38 +0200)]
login: use LOGIN_TIMEOUT from login.defs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 11:30:52 +0000 (13:30 +0200)]
login: rewrite motd(), use MOTD_FILE from login.defs
Note that Suse login(1) does not use any default for MOTD_FILE, so
MOTD_FILE item in login.defs is required otherwise nothing is printed.
We use (for backward compatibility) /etc/motd as default.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 11:16:30 +0000 (13:16 +0200)]
login: remove obsolete info from man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 10:15:50 +0000 (12:15 +0200)]
tests: remove obsolete checktty test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 5 Oct 2011 10:10:26 +0000 (12:10 +0200)]
login: add login.defs code and tests
The new logindefs.c file contains /etc/login.defs parser and functions
for searching in the list of the login default variables. The patch
also contains a new regression test for the code.
Based on pam_login-4.0 from Suse.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Oct 2011 21:45:45 +0000 (23:45 +0200)]
tests: cleanup islocal test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2011 15:45:36 +0000 (17:45 +0200)]
login: host{name,address} initialization refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2011 15:28:57 +0000 (17:28 +0200)]
login: remove unnecessary variables
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2011 15:23:43 +0000 (17:23 +0200)]
login: move signal stuff to the one place
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2011 15:21:04 +0000 (17:21 +0200)]
login: log good logins refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2011 15:06:08 +0000 (17:06 +0200)]
login: use xalloc.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2011 15:04:05 +0000 (17:04 +0200)]
login: env initialization refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Oct 2011 14:41:10 +0000 (16:41 +0200)]
login: fork & session initialization refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2011 10:51:55 +0000 (12:51 +0200)]
login: remove pam_handle_t from main()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2011 10:45:48 +0000 (12:45 +0200)]
login: PAM session initialization refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2011 10:40:58 +0000 (12:40 +0200)]
login: PAM account checks refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2011 10:32:24 +0000 (12:32 +0200)]
login: PAM auth refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2011 10:04:18 +0000 (12:04 +0200)]
login: PAM initialization refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 Sep 2011 09:37:32 +0000 (11:37 +0200)]
login: remove unused code and tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Aug 2011 08:30:42 +0000 (10:30 +0200)]
login: improve hushed mode (merge suse changes)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Aug 2011 12:41:03 +0000 (14:41 +0200)]
login: use setgroups(0, NULL) for root
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Aug 2011 11:25:13 +0000 (13:25 +0200)]
login: tty chown.chmod refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Aug 2011 10:56:07 +0000 (12:56 +0200)]
login: use getpwnam_r() rather than manually copy passwd struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Aug 2011 10:15:09 +0000 (12:15 +0200)]
login: utmp code refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>