summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-09-05 16:13:06 +1100
committerDamien Miller <djm@mindrot.org>2000-09-05 16:13:06 +1100
commitbac2d8aa5e642a70045e713853b13d020b9c5d57 (patch)
tree98ddc81efce2273b3dfaff03b51242c988d30abf /sshd.c
parent676092fad0b6edca8f1fe731d7c3a000465a9bef (diff)
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index e3903c783..f01df902a 100644
--- a/sshd.c
+++ b/sshd.c
@@ -765,7 +765,7 @@ main(int ac, char **av)
765 * fail if there already is a daemon, and this will 765 * fail if there already is a daemon, and this will
766 * overwrite any old pid in the file. 766 * overwrite any old pid in the file.
767 */ 767 */
768 f = fopen(options.pid_file, "w"); 768 f = fopen(options.pid_file, "wb");
769 if (f) { 769 if (f) {
770 fprintf(f, "%u\n", (unsigned int) getpid()); 770 fprintf(f, "%u\n", (unsigned int) getpid());
771 fclose(f); 771 fclose(f);