~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blast: Upper-case metasyntactic variables in the usage message.
[fwd]
/
privconn.c
diff --git
a/privconn.c
b/privconn.c
index
fcd292b
..
72f655b
100644
(file)
--- a/
privconn.c
+++ b/
privconn.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: privconn.c,v 1.
1 2003/11/29 20:36:07
mdw Exp $
+ * $Id: privconn.c,v 1.
3 2004/04/08 01:36:25
mdw Exp $
*
* Making privileged connections
*
*
* Making privileged connections
*
@@
-26,14
+26,6
@@
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: privconn.c,v $
- * Revision 1.1 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <assert.h>
/*----- Header files ------------------------------------------------------*/
#include <assert.h>
@@
-285,7
+277,7
@@
void privconn_split(sel_state *s)
pid_t kid;
int fd[2];
pid_t kid;
int fd[2];
- if (kidfd != -1)
+ if (kidfd != -1
|| DA_LEN(&cv) == 0
)
return;
if (socketpair(PF_UNIX, SOCK_STREAM, 0, fd) < 0)
die(1, "couldn't create privconn socketpair: %s", strerror(errno));
return;
if (socketpair(PF_UNIX, SOCK_STREAM, 0, fd) < 0)
die(1, "couldn't create privconn socketpair: %s", strerror(errno));