aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1998-12-12 21:30:17 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1998-12-12 21:30:17 +0000
commit25970dbc51e1f50b5166c74ad46339666dac04a7 (patch)
tree498f6dd5876815570cedc2b74c6a028612fe05e2 /usr.sbin
parent4c01697599d00fabd4aa2e05846b339f9c4403df (diff)
downloadsrc-25970dbc51e1f50b5166c74ad46339666dac04a7.tar.gz
src-25970dbc51e1f50b5166c74ad46339666dac04a7.zip
sendmsg() didn't like the MSG_EOR flag and returned an error. Removing the
flag makes portal tcp operation work.
Notes
Notes: svn path=/head/; revision=41701
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/mount_portalfs/activate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mount_portalfs/activate.c b/usr.sbin/mount_portalfs/activate.c
index 5bbd3b5a7106..6eb0c582753a 100644
--- a/usr.sbin/mount_portalfs/activate.c
+++ b/usr.sbin/mount_portalfs/activate.c
@@ -39,7 +39,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id$";
+ "$Id: activate.c,v 1.5 1998/07/06 07:19:23 charnier Exp $";
#endif /* not lint */
#include <errno.h>
@@ -148,7 +148,7 @@ int error;
/*
* Send to kernel...
*/
- if ((n = sendmsg(so, &msg, MSG_EOR)) < 0)
+ if ((n = sendmsg(so, &msg, 0)) < 0)
syslog(LOG_ERR, "send: %s", strerror(errno));
#ifdef DEBUG
fprintf(stderr, "sent %d bytes\n", n);