Bug 1042 - The behavior of sudo -l changed from 1.8.32 to 1.9.11p2
The behavior of sudo -l changed from 1.8.32 to 1.9.11p2
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.9.11
IBM AIX
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-10-20 02:18 MDT by ap.wieringa
Modified: 2022-10-31 02:48 MDT (History)
0 users

See Also:


Attachments
snippet (227 bytes, application/octet-stream)
2022-10-20 02:18 MDT, ap.wieringa
Details
od output from v1.8 (175 bytes, application/octet-stream)
2022-10-20 02:19 MDT, ap.wieringa
Details
od output from 1.9 (179 bytes, application/octet-stream)
2022-10-20 02:20 MDT, ap.wieringa
Details
sudolog output during sudo -l om 1.8 (775 bytes, application/octet-stream)
2022-10-20 02:20 MDT, ap.wieringa
Details
sudolig output during sudo -l on 1.9 (1.70 KB, application/octet-stream)
2022-10-20 02:22 MDT, ap.wieringa
Details

Note You need to log in before you can comment on or make changes to this bug.
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