summaryrefslogtreecommitdiff
path: root/source3/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-28 08:04:31 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-28 08:04:31 +0000
commit24d71da71d107c16c0d322b9c9f7b0073841c9f4 (patch)
treecd936df1ea0d8561b25d5b27a328b2a29d1e79e4 /source3/smbd/chgpasswd.c
parent80c39a9c1fd70ff80afb7d500137db597df19426 (diff)
downloadsamba-24d71da71d107c16c0d322b9c9f7b0073841c9f4.tar.gz
samba-24d71da71d107c16c0d322b9c9f7b0073841c9f4.tar.bz2
samba-24d71da71d107c16c0d322b9c9f7b0073841c9f4.zip
minor portability fix
samba-patches 820 (This used to be commit ea0a12fb60791553109f732079d971987538abd6)
Diffstat (limited to 'source3/smbd/chgpasswd.c')
-rw-r--r--source3/smbd/chgpasswd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 094b4683e4..9e593b022e 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -196,7 +196,9 @@ static int dochild(int master, const char *slavedev, const struct passwd *pass,
}
stermios.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
stermios.c_lflag |= ICANON;
+#ifdef ONLCR
stermios.c_oflag &= ~(ONLCR);
+#endif
if (tcsetattr(0, TCSANOW, &stermios) < 0)
{
DEBUG(3, ("could not set attributes of pty\n"));