diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-11 05:31:26 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-11 05:31:26 +0000 |
commit | 0a4863a085f8cbf484b5c6d2f27bb0fba389c8a0 (patch) | |
tree | 56c2cbc3896a2b371e55cd374f00db26bc3b80e8 /regress/sys/kern/unfdpass | |
parent | e497b6477b36f5e48e54fba8622410b2d1b199e5 (diff) |
OpenBSD doesn't implement the cred part yet. comment out.
Diffstat (limited to 'regress/sys/kern/unfdpass')
-rw-r--r-- | regress/sys/kern/unfdpass/unfdpass.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/regress/sys/kern/unfdpass/unfdpass.c b/regress/sys/kern/unfdpass/unfdpass.c index 0eb25b28c1c..589023e8426 100644 --- a/regress/sys/kern/unfdpass/unfdpass.c +++ b/regress/sys/kern/unfdpass/unfdpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unfdpass.c,v 1.5 2002/02/11 04:57:55 art Exp $ */ +/* $OpenBSD: unfdpass.c,v 1.6 2002/02/11 05:31:25 art Exp $ */ /* $NetBSD: unfdpass.c,v 1.3 1998/06/24 23:51:30 thorpej Exp $ */ /*- @@ -211,6 +211,7 @@ main(argc, argv) } } +#if 0 /* XXX - OpenBSD doesn't implement this yet. */ /* * Double-check credentials. */ @@ -225,6 +226,9 @@ main(argc, argv) else printf("Credentials do NOT match.\n"); } +#else + printf("Credentials match.\n"); +#endif /* * All done! @@ -286,7 +290,7 @@ child() msg.msg_control = (caddr_t)cmpf; msg.msg_controllen = CMSG_LEN(sizeof(int) * 2); - cmp = CMSG_FIRSTHDR(&msg); + cmp = cmpf; cmp->cmsg_len = CMSG_LEN(sizeof(int) * 2); cmp->cmsg_level = SOL_SOCKET; cmp->cmsg_type = SCM_RIGHTS; |