Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23164 - sudo -v returns wrong exit status

Attached to Project: Arch Linux
Opened by Petrus (petrus) - Sunday, 06 March 2011, 16:34 GMT
Last edited by Allan McRae (Allan) - Tuesday, 08 March 2011, 13:08 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

sudo -v always returns "failed" exit status (1) even if the command was successful. This behavior has shown up after upgrading to version 1.8.0-2.

This breaks scripts/programs if they use this invocation to extend time limits and cache user credentials before executing privileged commands via sudo. An example for such script is "packer". As a consequence packer currently cannot use sudo even if it is present.

Additional info:
* package: sudo 1.8.0-2


Steps to reproduce:

Run this supplying the correct password : sudo -v || echo failed

I detected this on i686 architecture, x86_64 need to be tested.

This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 08 March 2011, 13:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  sudo-1.8.0-3
Comment by Gaetan Bisson (vesath) - Sunday, 06 March 2011, 17:40 GMT
This is an upstream bug, already reported there: http://www.sudo.ws/bugs/show_bug.cgi?id=479
Comment by Petrus (petrus) - Sunday, 06 March 2011, 18:43 GMT
I appreciate that it is an upstream bug, however having this bug in the sudo package breaks other Arch packages. So "it might be helpful to post them in Arch bug tracker so that both Arch developers and users get aware of it." (quoted from Reporting Bug Guidelines)
Comment by Gaetan Bisson (vesath) - Sunday, 06 March 2011, 19:12 GMT
We developers appreciate having the URL to the upstream report; this way we are informed of comments, patches, etc. So it is helpful to post the upstream URL too.
Comment by Petrus (petrus) - Sunday, 06 March 2011, 19:50 GMT
Point taken.

Loading...