Commit Graph

3374 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
c008e1015f Attached is a patch that fixes the following:
- The argument for setsockopt is an int, not a size_t. This breaks on
  64bit OS's causing the buffer not to be set (or triggers a kernel
  bug on AIX due to size_t being parsed as an int and setting the
  socket buffer to zero due to bad kernel error checking).
- Add a check to see if the socket buffer is large enough already,
  don't make it smaller if it is.

From Niklas Edmundsson


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22701 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-21 21:37:32 +00:00
Love Hörnquist Åstrand
574683e7ab x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22666 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-09 21:48:09 +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
4e58a4c1cd use krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-13 09:41:54 +00:00
Love Hörnquist Åstrand
793dd27918 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-31 10:13:15 +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
6855b33640 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22282 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-13 20:36:12 +00:00
Love Hörnquist Åstrand
c2fcf3f57d Add missing files, from Buchan Milne.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22281 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-13 20:35:52 +00:00
Love Hörnquist Åstrand
a69298f8c8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22280 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-13 20:34:54 +00:00
Love Hörnquist Åstrand
103e7dc783 Add missing files, from Buchan Milne.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-13 20:34:44 +00:00
Love Hörnquist Åstrand
5fed824f37 its vs it\'s etc. From Bjorn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
465fcb5cb9 fix section for manpage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21993 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-19 14:08:36 +00:00
Love Hörnquist Åstrand
c9c608a574 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-19 05:40:07 +00:00
Love Hörnquist Åstrand
35af8afeba x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21989 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-19 05:37:07 +00:00
Love Hörnquist Åstrand
fa7b8061d9 read environment from _PATH_ETC_ENVIRONMENT
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21988 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-19 05:36:54 +00:00
Love Hörnquist Åstrand
b1bac360b3 add more paths.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-19 05:36:11 +00:00
Love Hörnquist Åstrand
c6c96d8e22 Add supaths.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-19 05:22:57 +00:00
Love Hörnquist Åstrand
cc4985b19d PATH file.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21985 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-19 05:22:25 +00:00
Love Hörnquist Åstrand
d4fbee9a2e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 17:32:59 +00:00
Love Hörnquist Åstrand
323dfbeabf Check all local realms when su-ing, from Magnus Holmberg.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 17:32:44 +00:00
Love Hörnquist Åstrand
992f052ac7 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 18:58:22 +00:00
Love Hörnquist Åstrand
28dc596f15 (usage): use exit_code, add --version and --help.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 18:57:20 +00:00
Love Hörnquist Åstrand
91352af590 Usage is static now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 01:55:45 +00:00
Love Hörnquist Åstrand
47a4623c9c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21733 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 01:40:58 +00:00
Love Hörnquist Åstrand
cd48123810 Add --help.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 01:40:30 +00:00
Love Hörnquist Åstrand
15ea035aef Catch --help, reported by David Love.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21731 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-30 20:01:26 +00:00
Love Hörnquist Åstrand
af6fa8974b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-28 20:08:51 +00:00
Love Hörnquist Åstrand
35b299229f Add --help.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21720 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-28 20:04:05 +00:00
Love Hörnquist Åstrand
7e35f69377 Init val to avoid gss error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21605 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-17 06:51:57 +00:00
Love Hörnquist Åstrand
450331866e plugin structures are not exposed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21553 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-15 09:04:52 +00:00
Love Hörnquist Åstrand
259576387c Fix pointer vs strict alias rules.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21522 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:15:04 +00:00
Love Hörnquist Åstrand
b49b2cdabf Fix pointer vs strict alias rules.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21521 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:13:40 +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
9cd3a9b5f0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:06:35 +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
559b419958 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21517 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:47:35 +00:00
Love Hörnquist Åstrand
9e42eb9529 Fix pointer vs strict alias rules.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21516 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:47:23 +00:00
Love Hörnquist Åstrand
e80e8fcc08 Fix pointer vs strict alias rules.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21515 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:47:07 +00:00
Love Hörnquist Åstrand
2e2950b961 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:45:39 +00:00
Love Hörnquist Åstrand
33918e0432 Fix pointer vs strict alias rules.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:45:25 +00:00
Love Hörnquist Åstrand
e270dfd78e (AcquirePKInitCreds): fail more gracefully
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 10:19:19 +00:00
Love Hörnquist Åstrand
49a4cd47b8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 10:16:13 +00:00
Love Hörnquist Åstrand
7a6904bd9d if no mech have no session, its ok, just don't call it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21225 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 10:16:02 +00:00
Love Hörnquist Åstrand
785dfc3af3 provide prototype for sec_userok().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 10:15:13 +00:00
Love Hörnquist Åstrand
6acd69acc8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21223 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 10:11:37 +00:00
Love Hörnquist Åstrand
07a870bdf1 move ksetpag after initgroups to make it work on Linux when its without syscall hooks to change sys_setgroups preserve the pag. From abo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21222 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 10:11:14 +00:00
Love Hörnquist Åstrand
5c4742d6d6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21180 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-19 15:16:56 +00:00
Love Hörnquist Åstrand
f2822370c3 If not root and not setuid, print warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21179 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-19 15:16:41 +00:00
Love Hörnquist Åstrand
6091b013cf x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 05:01:24 +00:00
Love Hörnquist Åstrand
77e06cc8fe don't clean yacc/lex files in CLEANFILES, maintainers clean will do that for us.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 05:00:27 +00:00