Bug 630

Summary: check_ttyname: FAIL none (sudo) vs. /dev/console (libc)
Product: Sudo Reporter: Evangelos Foutras <evangelos>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.9   
Hardware: PC   
OS: Linux   
Attachments: Build log
Test-suite log
Fix for /proc/self/stat parsing bugs

Description Evangelos Foutras 2014-01-13 09:58:32 MST
I'm getting the following test failure for sudo 1.8.9–1.8.9p2:

> check_ttyname: FAIL none (sudo) vs. /dev/console (libc)

This occurs on Arch Linux with glibc 2.18.

The previous version, sudo 1.8.8, doesn't fail any test cases.

You can see the PKGBUILD file below for configure options used:

https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/sudo

I'm not sure what other information might be useful; let me know if I missed something.
Comment 1 Evangelos Foutras 2014-01-13 09:59:12 MST
Created attachment 390 [details]
Build log
Comment 2 Evangelos Foutras 2014-01-13 10:02:16 MST
Created attachment 391 [details]
Test-suite log
Comment 3 Todd C. Miller 2014-01-13 11:04:49 MST
Created attachment 392 [details]
Fix for /proc/self/stat parsing bugs

This is fallout from the introduction of strtonum().  I'll release 1.8.9p3 shortly with the attached patch.
Comment 4 Evangelos Foutras 2014-01-13 11:34:16 MST
(In reply to Todd C Miller from comment #3)
> Created attachment 392 [details]
> Fix for /proc/self/stat parsing bugs
> 
> This is fallout from the introduction of strtonum().  I'll release
> 1.8.9p3 shortly with the attached patch.

I can confirm that the issue is fixed in 1.8.9p3.

Many thanks.