Bug 1042

Summary: The behavior of sudo -l changed from 1.8.32 to 1.9.11p2
Product: Sudo Reporter: ap.wieringa
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.9.11   
Hardware: IBM   
OS: AIX   
Attachments: snippet
od output from v1.8
od output from 1.9
sudolog output during sudo -l om 1.8
sudolig output during sudo -l on 1.9

Description ap.wieringa 2022-10-20 02:18:11 MDT
Created attachment 569 [details]
snippet

I compiled both versions of sudo on AIX 7.1 with the ibm c compiler.

When I do a sudo -l <command> on 1.8 there is no <cr> in the output. With 1.9.11 I see <cr> <lf>.

I ran sudo -l <command> | od -a  

Is this a bug or did I miss a option in the configure script?

I will attach the snippet, the testscript, od output and the logging from sudo. testu01 can run commands ast testu03 and is a member of the testgroup. 
I also noticed that there is no difference in the output of sudo -l without a command. The sudo log from 1.9 contains a few errors whereas the sudo log from 1.9 does not.
Comment 1 ap.wieringa 2022-10-20 02:19:17 MDT
Created attachment 570 [details]
od output from v1.8
Comment 2 ap.wieringa 2022-10-20 02:20:00 MDT
Created attachment 571 [details]
od output from 1.9
Comment 3 ap.wieringa 2022-10-20 02:20:54 MDT
Created attachment 572 [details]
sudolog output during sudo -l om 1.8
Comment 4 ap.wieringa 2022-10-20 02:22:37 MDT
Created attachment 573 [details]
sudolig output during sudo -l on 1.9
Comment 5 ap.wieringa 2022-10-20 02:26:08 MDT
(In reply to ap.wieringa from comment #0)
> Created attachment 569 [details]
> snippet
> 
> I compiled both versions of sudo on AIX 7.1 with the ibm c compiler.
> 
> When I do a sudo -l <command> on 1.8 there is no <cr> in the output.
> With 1.9.11 I see <cr> <lf>.
> 
> I ran sudo -l <command> | od -a  
> 
> Is this a bug or did I miss a option in the configure script?
> 
> I will attach the snippet, the testscript, od output and the logging
> from sudo. testu01 can run commands ast testu03 and is a member of
> the testgroup. 
> I also noticed that there is no difference in the output of sudo -l
> without a command. The sudo log from 1.9 contains a few errors
> whereas the sudo log from 1.9 does not.

last should be 1.8. Sorry for the typo's
Comment 6 Todd C. Miller 2022-10-20 09:28:38 MDT
This is fixed by https://www.sudo.ws/repos/sudo/rev/14f5bf04245f
Comment 7 Todd C. Miller 2022-10-23 09:13:13 MDT
Fixed in sudo 1.9.12, available now.
Comment 8 ap.wieringa 2022-10-31 02:48:25 MDT
That was quick! Thank you