X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/fd2dd2aa231954db2bcc0b60f2a696bc38161aa9..8950ac03f8fd0fb645c7d2374195ea884d091f72:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 1bb0633a..1baa1e09 100644 --- a/clientserver.c +++ b/clientserver.c @@ -63,7 +63,7 @@ int start_socket_client(char *host, char *path, int argc, char *argv[]) } if (*path == '/') { - rprintf(FERROR,"ERROR: The remote path must start with a module name\n"); + rprintf(FERROR,"ERROR: The remote path must start with a module name not a /\n"); return -1; } @@ -499,7 +499,7 @@ int daemon_main(void) rsyserr(FLOG, errno, "failed to create pid file %s", pid_file); exit_cleanup(RERR_FILEIO); } - slprintf(pidbuf, sizeof(pidbuf), "%d\n", pid); + snprintf(pidbuf, sizeof(pidbuf), "%d\n", pid); write(fd, pidbuf, strlen(pidbuf)); close(fd); }