Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/mkpasswd.c')
-rw-r--r--winsup/utils/mkpasswd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c
index 1d8db88ca..1a4969801 100644
--- a/winsup/utils/mkpasswd.c
+++ b/winsup/utils/mkpasswd.c
@@ -17,6 +17,7 @@
#include <getopt.h>
#include <lmaccess.h>
#include <lmapibuf.h>
+#include <sys/fcntl.h>
SID_IDENTIFIER_AUTHORITY sid_world_auth = {SECURITY_WORLD_SID_AUTHORITY};
SID_IDENTIFIER_AUTHORITY sid_nt_auth = {SECURITY_NT_AUTHORITY};
@@ -369,6 +370,7 @@ main (int argc, char **argv)
SID_NAME_USE use;
passed_home_path[0] = '\0';
+ setmode (1, O_BINARY);
if (GetVersion () < 0x80000000)
if (argc == 1)