"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/pure-authd.c" between
pure-ftpd-1.0.48.tar.gz and pure-ftpd-1.0.49.tar.gz

About: Pure-FTPd is a "fast, standard-conformant" FTP server.

pure-authd.c  (pure-ftpd-1.0.48):pure-authd.c  (pure-ftpd-1.0.49)
skipping to change at line 389 skipping to change at line 389
goto bye; goto bye;
} }
if (chmod(socketpath, 0600) != 0) { if (chmod(socketpath, 0600) != 0) {
perror("Unable to change perms on the local socket"); perror("Unable to change perms on the local socket");
goto bye; goto bye;
} }
if (listen(kindy, AUTHD_BACKLOG) != 0) { if (listen(kindy, AUTHD_BACKLOG) != 0) {
perror("Unable to listen the local socket"); perror("Unable to listen the local socket");
goto bye; goto bye;
} }
if (changeuidgid() < 0) {
perror("Identity change");
(void) unlink(authd_pid_file);
return -1;
}
do { do {
if ((clientfd = accept(kindy, NULL, NULL)) == -1) { if ((clientfd = accept(kindy, NULL, NULL)) == -1) {
if (exit_authd != 0) { if (exit_authd != 0) {
break; break;
} }
(void) sleep(1); (void) sleep(1);
continue; continue;
} }
setcloexec(clientfd); setcloexec(clientfd);
process(clientfd); process(clientfd);
skipping to change at line 464 skipping to change at line 469
return -2; return -2;
} }
if (socketpath == NULL || *socketpath == 0) { if (socketpath == NULL || *socketpath == 0) {
fprintf(stderr, "You must give -s /path/to/socket\n"); fprintf(stderr, "You must give -s /path/to/socket\n");
return -2; return -2;
} }
if (daemonize != 0) { if (daemonize != 0) {
dodaemonize(); dodaemonize();
} }
updatepidfile(); updatepidfile();
if (changeuidgid() < 0) {
perror("Identity change");
(void) unlink(authd_pid_file);
return -1;
}
#ifdef SIGPIPE #ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
#endif #endif
#ifdef SIGCHLD #ifdef SIGCHLD
signal(SIGCHLD, SIG_DFL); signal(SIGCHLD, SIG_DFL);
#endif #endif
err = listencnx(); err = listencnx();
(void) unlink(authd_pid_file); (void) unlink(authd_pid_file);
return err; return err;
 End of changes. 2 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)