From 982beb2bd2ed0b2cd6cc35f5de75bb85b2ad530f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 11 Aug 2009 11:03:25 +0300 Subject: [PATCH] obexd: Make sure the ONLCR flag is cleared for the TTY cfmakeraw doesn't seem to clear the ONLCR flag which can cause some strange behavior. --- obexd/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/obexd/src/main.c b/obexd/src/main.c index 0e7e604f5..abd2bccfb 100644 --- a/obexd/src/main.c +++ b/obexd/src/main.c @@ -93,6 +93,7 @@ int tty_init(int services, const gchar *root_path, tcgetattr(fd, &options); cfmakeraw(&options); + options.c_oflag &= ~ONLCR; tcsetattr(fd, TCSANOW, &options); arg = fcntl(fd, F_GETFL); -- 2.47.3