Package: wajig Version: 2.2 Severity: important Tags: patch Hello, I am one of the co-maintainers of apt-listbugs.
While dealing with a comment on one of the bugs filed against apt-listbugs <http://bugs.debian.org/662983#50>, I stumbled on a surprising behavior of wajig. It seems that wajig uses "su -c" to execute commands that require root privileges, even when the user is already root! After taking a look at the source, I think I found where the problem lies: the attached patch should fix the issue. Warning!!! The patch is untested, since I am not a user of wajig and I do not have time to get acquainted with it, unfortunately. Sorry about this. Legal notice: I am convinced that my patch is too trivial to be covered by my copyright; hence, no license should be needed, in order to incorporate it into wajig (should you decide to accept it). Anyway, should this turn out to be untrue, I hereby release my patch under the same terms as wajig, that is to say, under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. I hope this may help to improve wajig. Bye and thanks for your time! -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (800, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
su-c_only_when_non_root.diff.gz
Description: GNU Zip compressed data

