]> andersk Git - openssh.git/blobdiff - sshd.c
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
[openssh.git] / sshd.c
diff --git a/sshd.c b/sshd.c
index e3903c7837aff5b743924fe67a96a8c267ce342d..f01df902a0d35ab204f9a8b216cf8f233c7c0183 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -765,7 +765,7 @@ main(int ac, char **av)
                         * fail if there already is a daemon, and this will
                         * overwrite any old pid in the file.
                         */
-                       f = fopen(options.pid_file, "w");
+                       f = fopen(options.pid_file, "wb");
                        if (f) {
                                fprintf(f, "%u\n", (unsigned int) getpid());
                                fclose(f);
This page took 0.032595 seconds and 4 git commands to generate.