diff options
author | dillon <dillon@FreeBSD.org> | 1998-12-12 21:30:17 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1998-12-12 21:30:17 +0000 |
commit | b9c991f4868ca0e7c01e203ee7261d0064d5d013 (patch) | |
tree | c961f091ad87f8dff3e8901a3ab5c0b7b17dbe30 | |
parent | 127655f6ddbdc440718336f96821295020e660e5 (diff) | |
download | FreeBSD-src-b9c991f4868ca0e7c01e203ee7261d0064d5d013.zip FreeBSD-src-b9c991f4868ca0e7c01e203ee7261d0064d5d013.tar.gz |
sendmsg() didn't like the MSG_EOR flag and returned an error. Removing the
flag makes portal tcp operation work.
-rw-r--r-- | sbin/mount_portal/activate.c | 4 | ||||
-rw-r--r-- | sbin/mount_portalfs/activate.c | 4 | ||||
-rw-r--r-- | usr.sbin/mount_portalfs/activate.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sbin/mount_portal/activate.c b/sbin/mount_portal/activate.c index 5bbd3b5..6eb0c58 100644 --- a/sbin/mount_portal/activate.c +++ b/sbin/mount_portal/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); diff --git a/sbin/mount_portalfs/activate.c b/sbin/mount_portalfs/activate.c index 5bbd3b5..6eb0c58 100644 --- a/sbin/mount_portalfs/activate.c +++ b/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); diff --git a/usr.sbin/mount_portalfs/activate.c b/usr.sbin/mount_portalfs/activate.c index 5bbd3b5..6eb0c58 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); |