OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89371bb
)
* mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
author
cgf
<cgf>
Thu, 30 May 2002 19:35:51 +0000
(19:35 +0000)
committer
cgf
<cgf>
Thu, 30 May 2002 19:35:51 +0000
(19:35 +0000)
winsup/utils/ChangeLog
patch
|
blob
|
history
winsup/utils/mkpasswd.c
patch
|
blob
|
history
diff --git
a/winsup/utils/ChangeLog
b/winsup/utils/ChangeLog
index
7d8f2b1
..
fc8df5f
100644
(file)
--- a/
winsup/utils/ChangeLog
+++ b/
winsup/utils/ChangeLog
@@
-1,3
+1,7
@@
+2002-05-30 Christopher Faylor <cgf@redhat.com>
+
+ * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
+
2002-05-29 Christopher Faylor <cgf@redhat.com>
* mount.cc (main): Make -b the default.
diff --git
a/winsup/utils/mkpasswd.c
b/winsup/utils/mkpasswd.c
index
9824789
..
63a81aa
100644
(file)
--- a/
winsup/utils/mkpasswd.c
+++ b/
winsup/utils/mkpasswd.c
@@
-476,7
+476,8
@@
main (int argc, char **argv)
DWORD len;
passed_home_path[0] = '\0';
- setmode (1, O_BINARY);
+ if (!isatty (1))
+ setmode (1, O_BINARY);
if (GetVersion () < 0x80000000)
{