Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
705e50b079
Check name before using it [CID-43]
2009-07-30 13:48:39 +02:00
Love Hörnquist Åstrand
3ad1d78d63
make roken not provide environ, its really something that doesnt work in a multinamespace enviroments (read mac os x)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23943 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-19 04:57:42 +00:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
5f47850b7e
Really, mac os uses wtmpx (or asl).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22953 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-10 10:44:23 +00:00
Love Hörnquist Åstrand
bdd75a7ca8
Dont need to set this as the controlling PTY on steams sockets, don't
...
abort on failure. From Harald Barth and Ian Delahorne.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-09 21:47:53 +00:00
Love Hörnquist Åstrand
39733fdb03
Use strlcpy instead of strncpy, thanks to Antoine Brodin.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-31 10:12:48 +00:00
Love Hörnquist Åstrand
3d31f777e0
Remove leftover.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21520 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:11:49 +00:00
Love Hörnquist Åstrand
578a6f5594
GLIBC made the choice that ut_tv should be shared between 32 and 64
...
bit platforms so now we can no longer use struct timeval functions to
compare or set/get data that uses pointer (gettimeofday for example)
since ut_tv is now not a struct timeval but rather a struct { int32_t
tv_sec; int32_t tv_usec; };
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:04:50 +00:00
Love Hörnquist Åstrand
489987bee3
Dont't include some streamspty headers here.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 00:09:25 +00:00
Johan Danielsson
2807ca723b
remove newline from syslog string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-03 16:40:05 +00:00
Love Hörnquist Åstrand
da3079056e
no need to typecast argument to writenet
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-08 13:35:04 +00:00
Love Hörnquist Åstrand
b5bf953b97
(set_termbuf): use {} around if to make else unambiguous
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-27 13:42:04 +00:00
Love Hörnquist Åstrand
3fe17e04c4
(start_login): put utmpx code into a new scope to avoid pre c99 problems.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-20 08:35:51 +00:00
Johan Danielsson
40b1dab5bd
(start_login): set encryption pointers to NULL, so we don't try to do
...
either
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15138 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-13 14:20:38 +00:00
Love Hörnquist Åstrand
a3bb5d884c
(getpty): Declare p.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14967 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-27 08:02:18 +00:00
Love Hörnquist Åstrand
0ffd30a6e4
rewrite getpty to make use openpty when its found, save the slave fd
...
so that cleanopen can use it if its available
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14848 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 13:36:20 +00:00
Love Hörnquist Åstrand
50d9ed5566
clean_ttyname might be unused, mark it so with __attribute__
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-07 19:33:29 +00:00
Love Hörnquist Åstrand
c41860a8ee
use NULL as last argument to execl, not 0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-06 11:23:54 +00:00
Johan Danielsson
60369967af
remove const from argument list passed to execv
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-27 13:03:10 +00:00
Assar Westerlund
afe19111e9
add a kludge to make it build on aix (that defines NOERROR in both
...
sys/stream.h and arpa/nameser.h and considers that a fatal error)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10712 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-17 02:09:04 +00:00
Assar Westerlund
67813438a7
kill some warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-29 00:45:23 +00:00
Assar Westerlund
7d75a2a5f5
include libutil.h if it exists
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10515 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 23:09:03 +00:00
Assar Westerlund
b42cba5cb5
(getpty): call openpty if it exists
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-10 13:34:57 +00:00
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