Commit Graph

100 Commits

Author SHA1 Message Date
Assar Westerlund
4b907b8737 (start_login): give the correct error if exec fails
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-24 23:11:43 +00:00
Assar Westerlund
81ff46fb89 some minimal more amount of const-correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9738 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-07 00:10:49 +00:00
Assar Westerlund
c0ff298e15 (startslave, start_login): re-write code to keep track both of remote
hostname and utmp string to be used


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9660 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-08 16:07:28 +00:00
Assar Westerlund
234e644214 (scrub_env): add supporting non-file TERMCAP variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-08 23:32:06 +00:00
Assar Westerlund
423299cbc5 (scrub_env): remove some const-ness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9306 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-07 20:30:47 +00:00
Assar Westerlund
650f8bb0f0 (scrub_env): add LOGNAME and POSIXLY_CORRECT to the list of authorized
environment variables to be compatile with linux-telnetd


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-07 18:14:45 +00:00
Assar Westerlund
f9699a902a (scrub_env): change filtering algoritm from allowing everything except
a few bad cases to not allowing anything except a few non-dangerous
cases


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9304 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-07 14:50:21 +00:00
Björn Groenvall
6bf98229af Filter out some more environment variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-16 18:53:24 +00:00
Assar Westerlund
e3d3bbceb5 DCE stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8525 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-02 05:33:48 +00:00
Assar Westerlund
34406dd27b (*): make sure to always call time, ctime, and gmtime with `time_t's.
there were some types (like in lastlog) that we believed to always be
time_t.  this has proven wrong on Solaris 8 in 64-bit mode, where they
are stored as 32-bit quantities but time_t has gone up to 64 bits


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-26 19:48:27 +00:00
Assar Westerlund
cae7f2dce0 (addarg): make void (return value isn't check anyway). fatal error
when malloc fails


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7696 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-01 11:53:59 +00:00
Assar Westerlund
bf75fac82a large strc{py,at}_truncate -> strlc{py,at} replacement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6984 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:41:57 +00:00
Assar Westerlund
0e52d82e0b (rmut): free utxp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6745 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-05 09:51:45 +00:00
Assar Westerlund
cc0a3e7102 (rmut): work around utmpx strangness. From Miroslav Ruda
<ruda@ics.muni.cz>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6719 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-04 17:06:20 +00:00
Assar Westerlund
770a0aab91 update to new format for cpp define SunOS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6480 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-22 02:58:32 +00:00
Assar Westerlund
69a24aca75 (start_login): print a different warning with `-a otp'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6426 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-06 02:47:59 +00:00
Johan Danielsson
e496873b3a _CRAY -> HAVE_STRUCT_UTMP_UT_ID
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5788 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 14:11:24 +00:00
Johan Danielsson
009112b3ee remove unused variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5500 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-11 13:49:48 +00:00
Johan Danielsson
84bd0825e7 HAVE_UT_* -> HAVE_STRUCT_UTMP*_UT_*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5458 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-01 09:50:29 +00:00
Johan Danielsson
aaae186ab9 merge new-crypto branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Johan Danielsson
a5f54865d4 merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Assar Westerlund
cdeae4733c (start_login): moved `user' so it works even if !defined(HAVE_UTMPX_H)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3584 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-10 22:07:24 +00:00
Johan Danielsson
35ad156323 HAVE_UT_EXIT
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3505 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-18 15:15:40 +00:00
Johan Danielsson
7c164dc23c remove unintended commit of issue-code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3502 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-17 19:30:15 +00:00
Johan Danielsson
2c71d0405b Fix for duplicate `-- user'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3501 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-17 19:28:02 +00:00
Assar Westerlund
f3750c9f04 clean-up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1790 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 03:14:38 +00:00
Assar Westerlund
2a4486f71c (start_login): Set `ut_id' if we're using utmpx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1785 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-30 02:21:04 +00:00
Johan Danielsson
a56d44b4ec Cray rmut(3) needs ut_id.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1777 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-25 17:08:48 +00:00
Assar Westerlund
65cb0254ca Only include <utmp.h> and <utmpx.h> once
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1776 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-25 16:23:54 +00:00
Assar Westerlund
1a3ad193cf Check for `_PATH_WTMP'.
Remove stupid macros.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1775 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-25 15:18:20 +00:00
Assar Westerlund
f1213f7610 Use `_getpty' if there's one
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1768 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-25 07:37:16 +00:00
Assar Westerlund
04a4f72a3d removed const-ness from clean_ttyname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1761 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-25 01:14:33 +00:00
Assar Westerlund
d781a5536f utmp stuff now seems to be compatible with login
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1752 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-20 20:37:18 +00:00
Assar Westerlund
a0b25be494 changed utmp-stuff not to use ut_id at all
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1746 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-20 13:48:32 +00:00
Johan Danielsson
9325498645 HAVE_UTMPX -> HAVE_UTMPX_H. Fix for OSF1. Some cleanup.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1713 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-14 17:37:21 +00:00
Assar Westerlund
5da8f7da41 telnetd cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1695 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-11 06:30:05 +00:00
Johan Danielsson
86cab80d92 Use HAVE_UTMPX_H rather than HAVE_UTMPX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1661 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-04 05:18:32 +00:00
Assar Westerlund
dd02a92a8b replace sprintf all over the place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1635 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-02 14:29:33 +00:00
Assar Westerlund
dd39b3368a Do gettimeofday and then copy the data for the sake of those systems
like SGI that can have different timevals in file and memory.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1481 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-23 05:05:17 +00:00
Björn Groenvall
6e801d57f3 Compile under HP-UX 10.
First try to use POSIX termios else SysV termio.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1253 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-02-21 19:21:17 +00:00
Assar Westerlund
b1c16abe85 sys/termio.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1244 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-02-17 21:08:08 +00:00
Assar Westerlund
aeaef3368f *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1200 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-27 02:06:00 +00:00
Assar Westerlund
3d7c57acdb clean-up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1187 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-24 23:13:35 +00:00
Assar Westerlund
826057d2b5 test for TIOCSWINSZ instead of incorrectly using TIOCGWINSZ
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1164 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-15 21:17:59 +00:00
Assar Westerlund
94cb9a93ac got rid of lots of stupid casts
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1057 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-19 22:48:40 +00:00
Assar Westerlund
6202f22614 removed all stupid (void)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1034 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 20:23:48 +00:00
Assar Westerlund
239db0f710 removed all stupid register declarations
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1033 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 20:04:43 +00:00
Assar Westerlund
f5d57fec19 Removed SecurID support and send -a otp if require_otp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@995 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 00:20:21 +00:00
Johan Danielsson
89a6a2a095 Really remove bad stuff from environment.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@947 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-11 20:51:04 +00:00
Björn Groenvall
cf6e7be0fd Minur changes for HP-UX 10.1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@889 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-25 16:02:47 +00:00