Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=ddc0ce9916f95552df58867cf466d066a4edacfe
commit ddc0ce9916f95552df58867cf466d066a4edacfe Author: Miklos Vajna <vmik...@frugalware.org> Date: Wed May 11 15:32:04 2011 +0200 make pacman -P conflict with -r diff --git a/src/pacman-g2/ps.c b/src/pacman-g2/ps.c index 3c729d3..ce7062d 100644 --- a/src/pacman-g2/ps.c +++ b/src/pacman-g2/ps.c @@ -30,8 +30,11 @@ /* pacman-g2 */ #include "util.h" #include "log.h" +#include "conf.h" #include "ps.h" +extern config_t *config; + static int start_lsof(FILE** childout, int* childpid) { char *args[] = { "lsof", "-n", "-FLpcnf0", NULL }; @@ -144,6 +147,11 @@ int pspkg() pid_t pid; list_t* i; + if (strcmp(config->root, "/") != 0) { + ERR(NL, _("changing root directory is not supported when listing open files.\n")); + return -1; + } + if (start_lsof(&fpout, &pid) < 0) return -1; _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git