projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow list of environment variables to be passed to execute_script().
[tinc]
/
lib
/
dropin.c
diff --git
a/lib/dropin.c
b/lib/dropin.c
index
c26a357
..
d7658c7
100644
(file)
--- a/
lib/dropin.c
+++ b/
lib/dropin.c
@@
-1,7
+1,7
@@
/*
dropin.c -- a set of drop-in replacements for libc functions
/*
dropin.c -- a set of drop-in replacements for libc functions
- Copyright (C) 2000,2001 Ivo Timmermans <i
timmermans@bigfoot.com
>,
- 2000,2001 Guus Sliepen <guus@sliepen.
warande.net
>
+ Copyright (C) 2000,2001 Ivo Timmermans <i
vo@o2w.nl
>,
+ 2000,2001 Guus Sliepen <guus@sliepen.
eu.org
>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: dropin.c,v 1.1.2.
5 2001/11/05 19:06:07
guus Exp $
+ $Id: dropin.c,v 1.1.2.
10 2002/06/21 10:11:11
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-28,12
+28,15
@@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdarg.h>
#include <xalloc.h>
#include <system.h>
#include <errno.h>
#include <xalloc.h>
#include <system.h>
#include <errno.h>
+#include "fake-getnameinfo.c"
+
#ifndef HAVE_DAEMON
/*
Replacement for the daemon() function.
#ifndef HAVE_DAEMON
/*
Replacement for the daemon() function.
@@
-97,6
+100,8
@@
int daemon(int nochdir, int noclose)
dup2(fd, 2);
}
}
dup2(fd, 2);
}
}
+
+ return 0;
}
#endif
}
#endif