[sudo-users] sudo 1.7.4p4 - solaris 10 - edits with vi, visudo or sudoedit - display corrupted

Macleod, Paul paul.macleod at hp.com
Wed Jan 19 03:05:16 EST 2011


Hi Todd,

I can confirm the fix addresses the problem.

Line 155 of term.c now reads:
	    CLR(term.c_oflag, OPOST);
	Instead of:
	    SET(term.c_oflag, OPOST);


Good stuff! Thanks.


-Paul MacLeod.



-----Original Message-----
From: Todd C. Miller [mailto:Todd.Miller at courtesan.com] 
Sent: 18 January 2011 16:06
To: Macleod, Paul
Cc: Todd C. Miller; sudo-users at sudo.ws
Subject: Re: [sudo-users] sudo 1.7.4p4 - solaris 10 - edits with vi, visudo
or sudoedit - display corrupted

Can you try this diff against sudo 1.7.4p5 and see if it fixes it?

 - todd

--- term.c.orig	Tue Jan 18 11:04:56 2011
+++ term.c	Tue Jan 18 11:05:02 2011
@@ -152,7 +152,7 @@
     term.c_cc[VMIN] = 1;
     term.c_cc[VTIME] = 0;
     CLR(term.c_iflag, ICRNL | IGNCR | INLCR | IUCLC | IXON);
-    CLR(term.c_oflag, OPOST);
+    SET(term.c_oflag, OPOST);
     CLR(term.c_lflag, ECHO | ICANON | ISIG | IEXTEN);
     if (isig)
 	SET(term.c_lflag, ISIG);


More information about the sudo-users mailing list