summaryrefslogtreecommitdiffstats
path: root/login-utils
Commit message (Collapse)AuthorAgeFilesLines
* su: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk28'Karel Zak2012-07-166-40/+38Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2012wk28: translation: unify file open error messages translation: unify stat error messages utmpdump: use help and version output macros su: align with howto-usage-function fdisk: make if clause easier to read look: remove extra semicolon utmpdump: remove unused variable swapon: remove unused variables lib/loopdev: minor bug fix: add missing semicolon lib/pager: minor compiler warning fixes libblkid: remove duplicate entries in symbols
| * translation: unify file open error messagesSami Kerola2012-07-165-10/+9Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * utmpdump: use help and version output macrosSami Kerola2012-07-161-4/+4
| | | | | | | | | | | | Done to reduce translation project work. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * su: align with howto-usage-functionSami Kerola2012-07-161-26/+25Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * utmpdump: remove unused variableSami Kerola2012-07-161-1/+0Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | utmpdump: kill unused variable in follow_by_inotify()Petr Uzel2012-07-161-1/+0Star
| | | | | | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* | docs: man page syntax fixesVille Skyttä2012-07-161-1/+1
|/ | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* login: close tty before vhangup()Karel Zak2012-07-121-0/+8
| | | | | | | Let's close all tty file descriptors before vhangup() call. References: https://lkml.org/lkml/2012/6/5/145 Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: cleanup file descriptor usageKarel Zak2012-07-101-14/+18
| | | | | | | | - don't support --follow for stdin at all - inotify based implementation closes the file, so don't close it in main() again Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: encourage users not to follow stdinSami Kerola2012-07-101-1/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* utmpdump: use inotify to when following fileSami Kerola2012-07-101-7/+107
| | | | | | Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* utmpdump: fixes based on static analysis [cppcheck]Sami Kerola2012-07-101-10/+1Star
| | | | | | | | | | | [utmpdump.c:82]: (style) The function 'unspace' is never used [utmpdump.c:131]: (style) The scope of the variable 't' can be reduced [utmpdump.c:167]: (warning) scanf without field width limits can crash with huge input data [kzak@redhat.com: - don't use scanf field width limits for integers] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: white space fixSami Kerola2012-07-091-20/+19Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: clean up utmpdump.1 manualSami Kerola2012-07-091-26/+31
| | | | | | | | | | Align with Documentation/howto-man-page.txt Signed-off-by: Sami Kerola <kerolasa@iki.fi> Conflicts: login-utils/utmpdump.1
* utmpdump: document optional filename argumentBernhard Voelker2012-07-092-2/+5
| | | | Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* docs: fix typos found by misspellingsBernhard Voelker2012-07-092-3/+3
| | | | | | | | | | | | | | | | | | The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * Documentation/releases/v2.18-ReleaseNotes: Fix typo in news entry. * NEWS: Likewise. * config/texinfo.tex: Fix typo in comments. * libmount/src/context.c: Fix typo in comment. * libmount/src/fs.c: Likewise. * login-utils/login.c: Likewise. * login-utils.su.1: Fix typo in man page. * sys-utils/chcpu.c: Fix typo in error message. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-7/+7
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: use xalloc.h, minor coding style changesKarel Zak2012-06-291-12/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: cleanup usage()Karel Zak2012-06-291-7/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: add long optionsKarel Zak2012-06-292-12/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: use err.h stuffKarel Zak2012-06-291-25/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: add NLS and closestream supportKarel Zak2012-06-291-6/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: remove dead codeKarel Zak2012-06-291-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: remove libc5 supportKarel Zak2012-06-292-76/+11Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: cleanup comments, funcs definition linesKarel Zak2012-06-291-45/+29Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* utmpdump: new command, merge from sysvinitKarel Zak2012-06-293-0/+389
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup .gitignore filesKarel Zak2012-06-261-10/+0Star
| | | | | | | - move all binaries to top-level .gitignore - remove unnecessary */.gitignore files Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-15/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert login-utils/ to moduleKarel Zak2012-06-261-37/+50
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk23' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2012-06-151-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit: lsblk: use blkdev_scsi_type_to_name() blkdev: add blkdev_scsi_type_to_name() wipefs: use symbolic value for markup mode eject: inform if CD-ROM drive is not ready docs: clean up partx.8 manual include: fix void pointer arithmetics warnings sysfs: fix printf format warnings build: fix unused parameter warnings build: fix redundant redeclaration warnings include: fix spurious list.h warnings uuidd: use output redirection which works [checkbashisms] blkid: fix realloc memory leak [cppcheck] setarch: do not use -1 as array index [cppcheck]
| * build: fix redundant redeclaration warningsSami Kerola2012-06-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | env.c:24:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] su.c:81:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] fstab.c:581:14: warning: redundant redeclaration of 'strsignal' [-Wredundant-decls] kill.h:1:13: note: previous declaration of 'get_pids' was here kill.c:152:13: warning: redundant redeclaration of 'get_pids' [-Wredundant-decls] kill.c:142:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] getopt.c:89:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] agetty.c:536:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls] agetty.c:537:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] script.c:161:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] wall.c:96:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] libmount.h:362:26: note: previous declaration of 'mnt_update_get_fs' was here libmount.h:454:26: note: previous declaration of 'mnt_context_get_fs' was here mountP.h:383:26: warning: redundant redeclaration of 'mnt_context_get_fs' [-Wredundant-decls] mountP.h:398:26: warning: redundant redeclaration of 'mnt_update_get_fs' [-Wredundant-decls] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | su: remove unimplemented options -u and -vBernhard Voelker2012-06-151-8/+10
|/ | | | Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* build-sys: suid su in make installKarel Zak2012-06-051-2/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: fix compiler warning [-Wsign-compare]Karel Zak2012-06-051-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2012wk22' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2012-06-057-127/+192
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '2012wk22' of git://github.com/kerolasa/lelux-utiliteetit: docs: clean up getopt.1 manual docs: clean up dmesg.1 manual docs: clean up chcpu.8 manual fileutils: xmkstemp() interface change docs: fix all man page groff warnings tools: add checkmans.sh docs: clean up wdctl.8 manual docs: clean up login.1 manual login: allow TTYGROUP name begin by number build-sys: add su executable to .gitignore logindefs: change getlogindefs_num() to return unsigned long Conflicts: login-utils/su.c sys-utils/dmesg.1
| * fileutils: xmkstemp() interface changeDave Reisner2012-06-022-2/+4
| | | | | | | | | | | | | | | | | | | | | | We can not let the user control where TMPDIR is for this tempfile. This will be where we write the updated passwd file, and must be capable of being moved atomically with rename(2). Therefore, it cannot be on a different device, or setpwnam() and vipw/vigr programs will invariably fail with EXDEV. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * docs: clean up login.1 manualSami Kerola2012-06-021-106/+170
| | | | | | | | | | | | | | | | PATH contents for users & root in DESCRIPTION section where wrong, and couple default values where missing. Rest of the change is about making the groff, and the output, to look good. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * login: allow TTYGROUP name begin by numberSami Kerola2012-06-021-8/+5Star
| | | | | | | | | | | | | | | | | | | | Assuming someone is using a TTYGROUP name beginnign by a digit the login was misbehaving with 'contains invalid numerical value: %s' message(s) in syslog. Please notice that group names that consist only digits as characters are valid (but likely to cause confusion, and chaos). Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * build-sys: add su executable to .gitignoreSami Kerola2012-06-021-0/+1
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * logindefs: change getlogindefs_num() to return unsigned longSami Kerola2012-06-024-13/+14
| | | | | | | | | | | | | | Where ever getlogindefs_num() is called return value is always expected to be unsigned, such as sleep() input, gid_t or mode_t. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | su: preserve errno in cleanup_pam()Ludwig Nussel2012-06-051-0/+4
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
* | build-sys: include correct source file for chshDave Reisner2012-06-051-1/+1
| | | | | | | | Signed-off-by: Dave Reisner <dreisner@archlinux.org>
* | su: use BSD err function instead of gnu's error()Ludwig Nussel2012-06-051-19/+19
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
* | su: remove unused codeLudwig Nussel2012-06-051-4/+1Star
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
* | su: replace PAM_BAIL_P macro with better solutionLudwig Nussel2012-06-051-28/+28
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
* | su: introduce xsetenv globallyLudwig Nussel2012-06-051-25/+11Star
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
* | su: use ENV_PATH resp ENV_SUPATH to be consistent with loginLudwig Nussel2012-06-051-8/+16
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
* | su: use EXIT_FAILURE consistentlyLudwig Nussel2012-06-051-9/+6Star
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
* | su: don't use custom MAX macroLudwig Nussel2012-06-051-5/+1Star
| | | | | | | | Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>