summaryrefslogtreecommitdiffstats
path: root/src/util/pty/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* * update_utmp.c (pty_update_utmp): Fix typo (OWRONLY -> O_WRONLY)Ken Raeburn2001-05-021-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13226 dc483132-0cff-0310-8789-dd5450dbe970
* * update_wtmp.c (ptyint_update_wtmpx): Add missing semi-colon inEzra Peisach2001-05-011-0/+5
| | | | | | code path if PTY_UTMP_E_EXIT and PTY_UTMPX_E_EXIT exist. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13223 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix some quoting of shell variables when passingTom Yu2001-04-301-0/+13
| | | | | | | | | | | | | | to "test". Reorder some logic in consistency checks to validate cache variables against "yes" to account for possible empty or nonexistent values. * pty-int.h: Fix conditional prototype of update_wtmp(). * update_wtmp.c: Fix conditional compilation of update_wtmp() to cover the case where we have setutxent() but don't have updwtmpx() and WTMPX_FILE, as is the case on some Linux installations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13222 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; makeTom Yu2001-04-281-0/+4
| | | | | | | sure to include the correct header when checking structure members. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13219 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Many changes to support the rewriting of the utmpTom Yu2001-04-281-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pieces of libpty. Do a large amount of checking for consistency of various utmp and utmpx APIs as currently understood. See rant in update_utmp.c. * dump-utmp.c: Rewrite; now has capability to use utmp{,x}name() to extract entries from utmp and utmpx files. Adjusts field widths when printing as appropriate. * libpty.h: Update call signature for update_utmp() and logwtmp(); make prototypes unconditional. * logwtmp.c: Rewrite. Use pututline() or pututxline() API whenever possible. * pty-int.h: Update call signatures for update_wtmp{,x}(); make prototypes unconditional. * sane_hostname.c: Use the autoconf-correct macro names. * update_utmp.c: Rewrite. Basically, use functions from the pututline() or pututxline() API whenever possible, to avoid lossage. Inserted large rant about the conjectured history of BSD utmp, sysV utmp, and utmpx, as well as documentation about some known quirks. * update_wtmp.c: Rewrite. Add new function ptyint_logwtmpx() that takes a utmpx rather than a utmp, so it can fail to lose data converting to and from utmp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13218 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Switch off of KRB5_USE_INET6 instead ofTom Yu2001-01-131-0/+6
| | | | | | | AF_INET6, which may be defined without a corresponding struct sockaddr_in6. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12901 dc483132-0cff-0310-8789-dd5450dbe970
* Use const sockaddr pointer in interface.Ken Raeburn2000-12-061-1/+6
| | | | | | Use get{name,addr}info if available, to pick up IPv6 support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12884 dc483132-0cff-0310-8789-dd5450dbe970
* make pty_make_sane_hostname take sockaddr* arg instead of sockaddr_in*Ken Raeburn2000-12-061-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12883 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Quote macro use inside AC_CHECK_LIB. ChangeEzra Peisach2000-11-011-0/+6
| | | | | | | AC_FUNC_CHECK to AC_CHECK_FUNC, AC_HAVE_FUNCS to AC_CHECK_FUNCS and AC_HEADER_CHECK to AC_CHECK_HEADER.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12831 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Add getutmpx() prototype if neededEzra Peisach2000-06-301-0/+7
| | | | | | | | | | | | | * configure.in: If getutmpx() exists on the system, test if a prototype is provided by the system headers. This was picked up by gcc -Wall. Under Linux glibc 2.1, the system header file <utmpx.h> provides a prototype for getutmpx() only if _GNU_SOURCE is defined (GNU extensions). The test offeres a prototype (which matches in this case) - if the prototype conflicts with a system provided one, we do not provide it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12477 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): More conditionalizing variable defintionEzra Peisach2000-06-291-0/+13
| | | | | | | | | | | | | | based on OS features. * cleanup.c (pty_cleanup): Add parenthesis about assignment in conditional (gcc suggestion). * pty-int.h: Include pty.h if it exists (for openpty prototype under Linux). * configure.in: Check for pty.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12451 dc483132-0cff-0310-8789-dd5450dbe970
* * libpty.h: If SOCK_DGRAM is not defined, provide a definition forEzra Peisach2000-06-261-0/+13
| | | | | | | | | | | | | | struct sockaddr_in to satisfy prototype. (based on similar code in k5-int.h). * update_wtmp.c (ptyint_update_wtmp), update_utmp.c (pty_update_utmp), open_slave.c (pty_open_slave), getpty.c (pty_getpty): conditionalize definition of variables based on code paths that are included. Essentially, clean up many compiler warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12438 dc483132-0cff-0310-8789-dd5450dbe970
* merge from krb5-1-2-beta4Ken Raeburn2000-06-231-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12426 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-011-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-261-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* Update dump-utmp from KerbNet 1.2.Ken Raeburn1999-08-031-0/+28
| | | | | | | Add makefile rules for building dump-utmp on request. Fix line id for console on Solaris. (PR561) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11618 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): utx.ut_pid is a pid_t, andTom Yu1999-04-241-0/+7
| | | | | | | | ent.ut_pid is sometimes a short; accordingly, use pid rather than ent.ut_pid, which might have gotten truncated. This fixes an Irix problem found by <rbasch@mit.edu>. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11394 dc483132-0cff-0310-8789-dd5450dbe970
* update_wtmp.c: Don't use updwtmpx() even if it exists for glibc 2.1,Theodore Tso1999-04-141-0/+7
| | | | | | | | since it's the same as updwtmp(), and glibc doesn't define PATH_WTMPX. updwtmpx() is not part of the XPG standard anyway. (Needed for RedHat 6.0.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11357 dc483132-0cff-0310-8789-dd5450dbe970
* * update_wtmp.c: Define WTMPX_FILE to be _PATH_WTMPX in case we'reTom Yu1999-03-281-0/+5
| | | | | | on a system that cleans up the namespace that way. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11323 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c (pty_make_sane_hostname): Remove unusedTom Yu1999-02-181-0/+5
| | | | | | "char *scratch". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11178 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Re-order so that pty-int.h precedes libpty.h toTom Yu1999-02-171-0/+5
| | | | | | prevent conflicting definitions of struct sockaddr_in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11174 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Force maxlen to be 16 if it's less than 16,Tom Yu1999-02-121-0/+3
| | | | | | since otherwise a numeric IP address won't fit. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11169 dc483132-0cff-0310-8789-dd5450dbe970
* bump minor versionTom Yu1999-02-121-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11168 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Add sane_hostname.{o,c}Tom Yu1999-02-121-0/+9
| | | | | | | | | * libpty.h: Add prototype for make_sane_hostname. * sane_hostname.c: New file; add function to "sanitize" hostname for logging purposes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11165 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Remove test CHECK_WAIT_TYPE since nothing is using theTheodore Tso1999-01-271-0/+5
| | | | | | results of that test (WAIT_USES_INT). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11131 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-301-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* Preliminary fixes for AIX4.3:Sam Hartman1998-07-121-0/+7
| | | | | | | | | | | * Fix static libs on platforms using .a for shared libs * Fix utmp handling for non-hpux platforms with ut_exit different from utmpx. * Include librarymacros in ss configure.in * Remove declarations of h_errno git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10632 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESSTom Yu1998-04-061-0/+5
| | | | | | entries, as they confuse last on some systems. [pty/569] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10520 dc483132-0cff-0310-8789-dd5450dbe970
* oops... add PR numberTom Yu1998-03-121-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10500 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Fix bogus entry ofTom Yu1998-03-121-0/+5
| | | | | | PTY_LOGIN_PROCESS types on BSD-ish systems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10499 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-181-0/+5
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-121-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): Fix goof in previous, which introducedTom Yu1997-12-071-0/+5
| | | | | | another fencepost error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10327 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): Fix checks on string lengths to accountTom Yu1997-12-051-0/+5
| | | | | | for terminating nul character. Some whitespace fixups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10313 dc483132-0cff-0310-8789-dd5450dbe970
* * pty_err.et: Add PTY_OPEN_SLAVE_TOOSHORT error codeTom Yu1997-12-031-0/+7
| | | | | | | * open_slave.c (pty_open_slave): Check to ensure that the slave name is not NULL or zero-length. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10310 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Do not prototype initialize_pty_error_table asEzra Peisach1997-10-281-0/+5
| | | | | | pty-err.h does as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10257 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (CFILES): Add $(srcdir)Ezra Peisach1997-10-241-0/+4
| | | | | | Allows make depend to run, git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10249 dc483132-0cff-0310-8789-dd5450dbe970
* Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogsTom Yu1997-10-021-0/+5
| | | | | | for details git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10204 dc483132-0cff-0310-8789-dd5450dbe970
* Remove erroneous space from the HPUX open()Theodore Tso1997-06-031-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10093 dc483132-0cff-0310-8789-dd5450dbe970
* Check for openpty() in -lutil. It's there on FreeBSD and BSDITheodore Tso1997-04-251-0/+5
| | | | | | systems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10074 dc483132-0cff-0310-8789-dd5450dbe970
* * Make shared libs work on AIXSam Hartman1997-02-221-0/+4
| | | | | | * Do not prototype error table init funciton; doesn't work any more git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9955 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-091-0/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-131-0/+10
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Handle case where utmp usesEzra Peisach1996-11-151-0/+10
| | | | | | | | | | | ut_exit.e_exit and utmpx uses ut_exit.ut_exit. * configure.in (UT_EXIT_STRUCTURE_DIFFER): If utmpx.h exists, and getutmpx does not exist then test if the ut_exit part of the utmp/utmpx structure is a structure and if their types differ. (e_exit vs. ut_exit). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9422 dc483132-0cff-0310-8789-dd5450dbe970
* update_utmp.c (pty_update_utmp): Add code which attempts to compensateTheodore Tso1996-11-081-0/+7
| | | | | | | | | for systems that don't have getutmpx() configure.in: Check for getutmpx(). Replace calls to AC_FUNC_CHECK with AC_HAVE_FUNCS(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9349 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bug pointed out by jhawk; we weren't looking for all ptysSam Hartman1996-06-241-0/+12
| | | | | | on SunOS or NetBSD. Also fix Hpux 10 bug with regard to utmpx. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8544 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: remove ref to ET_RULESTom Yu1996-06-141-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8360 dc483132-0cff-0310-8789-dd5450dbe970
* * dump-utmp.c: New file. Not automatically used by anything, but may be usefulKen Raeburn1996-04-171-0/+18
| | | | | | | | | | | | | | | | for examining utmp/wtmp files when comparing behavior against system software. * update_utmp.c (pty_update_utmp): Always use id "cons" for console. For HP-UX, omit "kl" prefix. Reindent for readability. * update_wtmp.c (ptyint_update_wtmp): For HP-UX, copy ut_id and ut_type from input utmp structure. Reindent for readability. Wed Mar 27 21:14:33 1996 Marc Horowitz <marc@mit.edu> * init_slave.c (pty_initialize_slave): Spurious signal stuff which did nothing deleted. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7819 dc483132-0cff-0310-8789-dd5450dbe970
* Changes so HPUX doesn't use streams. ThisSam Hartman1996-04-161-0/+7
| | | | | | | | may break on HPUX10 depending on how you should get the name of the pts side of /dev/ptym/clone. I don't have an HPUX10 system to test on. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7816 dc483132-0cff-0310-8789-dd5450dbe970
* Have pty_cleanup() fork on systems with vhangup()Sam Hartman1996-04-151-0/+13
| | | | | | | so that the right controlling terminal can be used; needed on HP and others possibly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7813 dc483132-0cff-0310-8789-dd5450dbe970