No need to call log_open() in start_accept_loop() because
authorWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 17:33:57 +0000 (17:33 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 17:33:57 +0000 (17:33 +0000)
rsync_module() calls log_init() before it gives up its privileges.

socket.c

index be0e311..969b932 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -506,9 +506,6 @@ void start_accept_loop(int port, int (*fn)(int, int))
                        int ret;
                        for (i = 0; sp[i] >= 0; i++)
                                close(sp[i]);
-                       /* open log file in child before possibly giving
-                        * up privileges  */
-                       log_open();
                        ret = fn(fd, fd);
                        close_all();
                        _exit(ret);