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#14371 - [namcap] crashs with sudo package

Attached to Project: Arch Linux
Opened by Allan McRae (Allan) - Sunday, 19 April 2009, 06:52 GMT
Last edited by Hugo Doria (hdoria) - Monday, 15 June 2009, 15:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jason Chu (jason)
Hugo Doria (hdoria)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
visudo has very restrictive permissions which namcap does not like.

> namcap sudo-1.7.1-1-i686.pkg.tar.gz
Traceback (most recent call last):
File "/usr/bin/namcap", line 146, in <module>
ret = pkg.analyze(pkginfo, sandbox_directory)
File "/usr/lib/python2.6/site-packages/Namcap/depends.py", line 183, in analyze
os.path.walk(data, scanlibs, liblist)
File "/usr/lib/python2.6/posixpath.py", line 232, in walk
walk(name, func, arg)
File "/usr/lib/python2.6/posixpath.py", line 232, in walk
walk(name, func, arg)
File "/usr/lib/python2.6/posixpath.py", line 224, in walk
func(arg, top, names)
File "/usr/lib/python2.6/site-packages/Namcap/depends.py", line 86, in scanlibs
fd = open(dirname+'/'+i)
IOError: [Errno 13] Permission denied: '/tmp/namcap.5865/usr/sbin/visudo'


Running namcap as root works.
This task depends upon

Closed by  Hugo Doria (hdoria)
Monday, 15 June 2009, 15:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed on git

Loading...