write_file(): drop caller-supplied LF from calls to create a one-liner file
All of the callsites covered by this change call write_file() or write_file_gently() to create a one-liner file. Drop the caller supplied LF and let these callees to append it as necessary. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
2
daemon.c
2
daemon.c
@ -1376,7 +1376,7 @@ int main(int argc, char **argv)
|
||||
sanitize_stdfds();
|
||||
|
||||
if (pid_file)
|
||||
write_file(pid_file, "%"PRIuMAX"\n", (uintmax_t) getpid());
|
||||
write_file(pid_file, "%"PRIuMAX, (uintmax_t) getpid());
|
||||
|
||||
/* prepare argv for serving-processes */
|
||||
cld_argv = xmalloc(sizeof (char *) * (argc + 2));
|
||||
|
||||
Reference in New Issue
Block a user