aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils/mkpasswd.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-06-15 04:50:57 +0000
committerChristopher Faylor <me@cgf.cx>2001-06-15 04:50:57 +0000
commit12a9c874804dc2970c44b223ec1059bd57900169 (patch)
tree6357f9749e62301834e69f302c3cc45c5385ffb6 /winsup/utils/mkpasswd.c
parente8d6e78f3463907eb272d119b77302e988b2828d (diff)
downloadnewlib-12a9c874804dc2970c44b223ec1059bd57900169.zip
newlib-12a9c874804dc2970c44b223ec1059bd57900169.tar.gz
newlib-12a9c874804dc2970c44b223ec1059bd57900169.tar.bz2
* mkpasswd.c (main): Output passwd file in binary mode so that there are no CRs
in the file. * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive mounts.
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 1d8db88..1a49698 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)