Allow installing/removing binpkgs as non-root.

--HG--
extra : convert_revision : 3781ef0a422530623cf64f45f87948e00d7e50e8
This commit is contained in:
Juan RP 2009-02-07 18:05:40 +01:00
parent a6f956257d
commit bb6355fe12
2 changed files with 11 additions and 15 deletions

View file

@ -134,12 +134,6 @@ main(int argc, char **argv)
if (argc != 2)
usage();
if (geteuid() != 0) {
printf("ERROR: root permissions are needed to install"
"and remove binary packages.\n");
exit(EXIT_FAILURE);
}
/* Install into root directory by default. */
if (strcasecmp(argv[0], "install") == 0) {
rv = xbps_install_binary_pkg(argv[1], root);