Commit Graph

75 Commits

Author SHA1 Message Date
Johan Danielsson e264c26f0c (doit): remove leftover sockets
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 13:42:05 +00:00
Love Hörnquist Åstrand fa3611d0b1 (recv_conn): pass pointer to sockaddr, not pointer to pointer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-15 15:10:57 +00:00
Love Hörnquist Åstrand e3fc3df5ad (recv_conn): get sizeof of the sockaddr_storage, not the sockaddr pointer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-15 14:37:13 +00:00
Love Hörnquist Åstrand 91f5196857 (recv_conn): if getnameinfo failes, send error to client (and syslog)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12292 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-15 13:54:12 +00:00
Johan Danielsson 8f06415a58 don't directly use sockaddr_storage, since we can't always know what
it looks like


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12055 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:45:43 +00:00
Johan Danielsson c0a3a2220c some ipv6 support (from Love)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11477 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-15 16:48:46 +00:00
Assar Westerlund 67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund c02ed215b8 (doit_passive): check that fds are not too large to select on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9101 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 13:22:19 +00:00
Assar Westerlund 5f648d3799 use socklen_t where appropriate instead of int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 20:53:11 +00:00
Assar Westerlund 3e01f1079f do not use variable as format string to syslog
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8479 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-28 18:44:07 +00:00
Assar Westerlund 615ff2f164 (main): call krb5_getportbyname with the default in host-byte-order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7680 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-28 03:39:38 +00:00
Assar Westerlund dc84dad095 (recv_conn): type correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7551 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-06 16:47:14 +00:00
Assar Westerlund 8ba4450cf7 (recv_conn): use getnameinfo_verified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7526 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 10:55:56 +00:00
Assar Westerlund b15b894583 (recv_conn): replace inaddr2str with getnameinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7517 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 00:20:14 +00:00
Johan Danielsson 3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund b26cf0520c (recv_conn): better errors when getting unrecognized data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7443 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-26 23:12:50 +00:00
Assar Westerlund 37af8f3e75 (childhandler): watch for child `wait_on_pid' to die.
(recv_conn): set `wait_on_pid' instead of looping on waitpid here
also.  This should solve the problem of kxd looping which was caused
by the signal handler getting invoked before this waitpid and reaping
the child leaving this poor loop without any child


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6894 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-02 19:09:25 +00:00
Assar Westerlund d265a2b7b8 (recv_conn): give better error message
(doit_active): don't die if fork gives EAGAIN


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6838 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 15:41:25 +00:00
Johan Danielsson 7b10291769 (recv_conn): call setjob on crays;
(doit_passive): if fork fails with EAGAIN, don't shutdown, just close
the connection
re-implement `-t' flag


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6837 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 14:56:38 +00:00
Assar Westerlund 3ed8194828 (main): hopefully do inetd confusion right
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6336 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-20 14:32:03 +00:00
Assar Westerlund b9c70fe785 (fatal): more type correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6325 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 03:54:47 +00:00
Assar Westerlund 656f74b6a6 (recv_conn): fix syslog messages
(main): fix inetd_flag thinko


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6276 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-22 14:34:57 +00:00
Assar Westerlund 362d7cdf4b *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6217 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-12 17:59:14 +00:00
Assar Westerlund 3447488a94 (main): use getarg
(*): handle v4 and/or v5


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6183 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-10 00:16:50 +00:00
Assar Westerlund 8e0e250033 (doit_passive): handle error code from create_and_write_cookie
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6156 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 01:25:08 +00:00
Johan Danielsson 0c027ef26c openlog -> roken_openlog
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5490 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-10 18:33:38 +00:00
Assar Westerlund 7f8b81d6f1 remove unused variables, add braces.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5381 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-19 05:17:11 +00:00
Assar Westerlund 74f17aca86 create sockets before setuid to handle Solaris' strange permissions on
/tmp/.X11-{unix,pipe}


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5154 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-26 15:35:06 +00:00
Assar Westerlund c32f42c69c (doit_passive): conditionalize stream pipe code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5122 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-16 17:24:26 +00:00
Assar Westerlund dc0dfabdfe implement support for Solaris's named-pipe X transport
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5121 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-16 16:35:13 +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 12a10d84b6 (doit): better error reporting
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4958 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-27 02:20:17 +00:00
Assar Westerlund 7c216dc504 (doit): fix flow-of-control bug in prev version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4782 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-19 07:45:06 +00:00
Assar Westerlund 5b996a53ae use new get_xsockets
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4602 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-18 22:30:53 +00:00
Assar Westerlund 84e37f1aef more error testing from Love Hörnquist-Åstrand <e96_lho@elixir.e.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4180 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-10 02:56:11 +00:00
Johan Danielsson 496e2c0ec8 Move tmp-file creation to create_and_write_cookie.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3877 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 11:14:28 +00:00
Assar Westerlund bcfa8627ac (doit_conn): Fix typo in call to accept.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1838 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-03 03:20:40 +00:00
Assar Westerlund bbb98977fa fencepost error with KRB_SENDAUTH_VLEN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1733 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-18 20:38:08 +00:00
Assar Westerlund 7a3d80ca25 gr
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1724 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-18 17:06:48 +00:00
Assar Westerlund 5d4d831853 mera rätt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1723 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-17 19:34:24 +00:00
Assar Westerlund 327a4d2bd9 added __attribute__ ((format (printf)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1707 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-11 11:04:38 +00:00
Assar Westerlund 0e57a774c9 Give a error message to old-version kx.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1703 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-11 09:02:45 +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 300821313c changed signature of `k_getsockinst'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1621 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-23 21:29:00 +00:00
Johan Danielsson e1282e7dfc Update copyright strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-01 08:19:18 +00:00
Assar Westerlund accc7d20c9 fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1531 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-30 18:57:54 +00:00
Assar Westerlund b201d1fd93 removed prog. Use err & c:o
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1528 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-30 17:38:11 +00:00
Assar Westerlund 0dcb37b177 major rewrite, reverse mode works again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1520 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-30 16:07:12 +00:00
Assar Westerlund 611158196d Proper check for success of `get_xsockets'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1478 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-23 05:02:51 +00:00
Assar Westerlund 0ca94f2ea3 Hacked so that all TCP-connections are kx - > kxd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1458 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-18 01:57:32 +00:00