summaryrefslogtreecommitdiffstats
path: root/term-utils
Commit message (Collapse)AuthorAgeFilesLines
* agetty: check localtime() resultKarel Zak2012-02-061-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: add static and const qualifiersFrancesco Cosoleto2011-12-161-4/+4
| | | | | | Remove also a static qualifier in main() function. Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* setterm: order man page items alphabeticallyJari Aalto2011-12-161-85/+67Star
| | | | Signed-off-by: Jari Aalto <jari.aalto@cante.net>
* agetty: don't use log_err() for non-fatal errorsKarel Zak2011-12-081-2/+2
| | | | | | | | | | | | | | The TIOCSCTTY ioctl requires that caller is session leader -- so it depends on initd (or we have to add setsid() to aggety). It seems that the traditional way is to setup tty in agetty and session in login(1). It means that all session related things (TIOCSCTTY, vhangup, ...) in the command agetty should be optional. (Note that vhangup() is called when --hangup is explicitly specified on command line, so log_err() makes sense there.) Reported-by: Andrew Walrond <andrew@walrond.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: check HAVE_ definitions with #ifdef [smatch scan]Sami Kerola2011-12-021-8/+4Star
| | | | | | | | | | Fix to `warning: undefined preprocessor identifier' messages. [kzak@redhat.com: replace "#ifdef XXX #ifdef YYY" with "#if defined(XXX) && defined(YYY)"] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: check HAVE_ definitions with #ifdef [smatch scan]Sami Kerola2011-12-021-3/+7
| | | | | | Fix to `warning: undefined preprocessor identifier' messages. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* agetty: map NL to CR-NL on output in initial termiossettingsDennis Jensen2011-11-281-1/+2
| | | | | From: Jacoby Hickerson <hickersonjl@gmail.com> Signed-off-by: Dennis Jensen <dennis.h.jensen@siemens.com>
* agetty: pass hostname to login(1)Karel Zak2011-10-262-7/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: align wall.1 with howto-man-page.txtSami Kerola2011-10-031-47/+45Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align scriptreplay.1 with howto-man-page.txtSami Kerola2011-10-031-164/+31Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align script.1 with howto-man-page.txtSami Kerola2011-10-031-98/+91Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* misc: use %m in format string instead of %s and strerror(errno)Petr Uzel2011-09-271-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* agetty: test ECHO on c_lflagKarel Zak2011-09-261-3/+3
| | | | | | Reported-by: xinglp <xinglp@gmail.com> Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=739522 Signed-off-by: Karel Zak <kzak@redhat.com>
* script: non-ANSI definition [smatch scan]Karel Zak2011-09-121-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: add --nohintsKarel Zak2011-09-122-1/+12
| | | | | Reported-by: "Gabor Z. Papp" <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
* script: libintl.h included in nls.hKarel Zak2011-09-071-3/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: double equals sign typo in opentty()Karel Zak2011-09-071-1/+1
| | | | | Reported-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* script: fix building with --disable-nlsNatanael Copa2011-09-071-0/+2
| | | | | | | | We should only include the libintl.h when NLS is requested. This fixes issue when building util-linux with uClibc. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
* write: fix path for freopen()Karel Zak2011-09-061-1/+1
| | | | | Reported-by: xinglp <xinglp@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2011-08-312-79/+1Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit: docs: remove duplicated text docs: require kernel support before accepting use of it docs: note about independent super block structs docs: add libmount & libblkid debug instructions Documentation: add debugging doc arch: start using arch as a usage() example docs: new file Documentation/release-schedule.txt docs: move setuid information from reame to hwclock.8 docs: clean up old readme files docs: copy contributors from legacy files to AUTHORS docs: new file Documentation/howto-man-page.txt docs: new file Documentation/source-code-management.txt docs: new file Documentation/howto-contribute.txt docs: new file Documentation/howto-compilation.txt docs: tell what the Documentation/ is about docs: add usage() howto for contributors docs: Documentation directory added docs: remove README.clear
| * docs: Documentation directory addedSami Kerola2011-08-122-79/+1Star
| | | | | | | | | | | | | | | | 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>
* | docs: also uniformize headers and footers of troff-formatted man pagesBenno Schulenberg2011-08-292-4/+4
| | | | | | | | | | | | | | | | | | Add two spaces as the required third argument of the date line to make the specified date get used instead of today's date. Incorporate the section number into the page title, then use an empty section number, so that specifying an explicit section/volume name will work. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | scriptreplay: improve synopsis and formatting and wording in man pageBenno Schulenberg2011-08-221-14/+18
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-228-10/+10
| | | | | | | | | | | | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | write: cleanup usage()Karel Zak2011-08-161-6/+8
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | wall: cleanup usage()Karel Zak2011-08-161-7/+8
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | setterm: cleanup usage()Karel Zak2011-08-161-43/+42Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | scriptreplay: cleanup usage()Karel Zak2011-08-161-8/+10
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | script: cleanup usage()Karel Zak2011-08-161-10/+9Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | mesg: cleanup usage()Karel Zak2011-08-161-6/+7
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | agetty: clean up usageKarel Zak2011-08-161-9/+9
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | script: normalize formatting of the man pageBenno Schulenberg2011-08-151-19/+18Star
| | | | | | | | | | | | | | Also improve the description of the --timing option, and discard a then superfluous paragraph. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | script: indicate that the file argument to --timing is optionalBenno Schulenberg2011-08-151-4/+4
| | | | | | | | | | | | Also improve some other descriptions in the usage message. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | write: remove inconsistent periods from two error messagesBenno Schulenberg2011-08-151-2/+2
|/ | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* agetty: improve login(1) argv[]Karel Zak2011-08-082-72/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* agetty: C.UTF-8 locale instead of en_US.UTF-8Samuel Thibault2011-08-081-1/+1
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* agetty: only enable F_UTF8 if kernel has already set IUTF8.Samuel Thibault2011-08-081-1/+2
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* wall: build with SUID_{C,LD}FLAGSPetr Uzel2011-08-081-0/+2
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* agetty: Fix IUTF8 flagWerner Fink2011-08-021-1/+7
| | | | | | | | 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>
* scriptreplay: fix buffer overflowSami Kerola2011-07-261-2/+2
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix spaces versus tabs conflictMarc-Antoine Perennou2011-07-111-4/+4
| | | | | | | For some reason, tabs were replaced by spaces in commit 73ae0d5be6e070afe83d1a2324ac79941629201e Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
* build-sys: don't try to chgrp write or wall if they are not builtMarc-Antoine Perennou2011-07-111-3/+8
| | | | | | Fix regression from commit 4aa9d65bfa76afd0d886ca410ae83428a490d4ea Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
* script: remove magic constants and a type mismatch fixSami Kerola2011-06-291-36/+38
| | | | | | | | | | The type mismatch; doinput: int -> ssize_t [kzak@redhat.com: - int -> pid_t, - remove "register" keyword] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* script: include-what-you-use header checkSami Kerola2011-06-291-2/+5
| | | | | | | | | | | | | | | | | The tool proposed; script.c should add these lines: script.c should remove these lines: - #include <sys/file.h> // lines 53-53 - #include <sys/types.h> // lines 48-48 - #include "c.h" // lines 61-61 and the change nearly did what the tool told. We should keep on using c.h, not err.h. The config.h is not needed, it's added automaticly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* script: remove unnecessary void castingSami Kerola2011-06-291-28/+28
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* script: option --force addedSami Kerola2011-06-292-7/+17
| | | | | | | | | | The --force will allow default output destination, e.g. typescript file, to be hard or symbolic link. [kzak@redhat.com: - remove "error:" prefix from errx()] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* write: maintenance fixesSami Kerola2011-06-251-103/+90Star
| | | | | | | Use libc error printing facilities, remove void casting, clean up unused headers and alignt coding style with README.devel. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* write: long options & new usageSami Kerola2011-06-251-3/+34
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: move write to term-utils directorySami Kerola2011-06-254-3/+473
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* misc: hurd build fixesSamuel Thibault2011-06-201-3/+17
| | | | | | | | | | | | * Make blkdev_is_misaligned return 0 when BLKALIGNOFF is not available. * Make procutils.c include c.h to get a PATH_MAX replacement. * Provide agetty.c USE_SYSLOG, DEFAULT_VCTERM and DEFAULT_STERM defaults for Hurd. * Make agetty.c only deal with OFDEL, XCASE and VSWTCH if they are available. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>