Fix xbps-bin install without using a rootdir.
--HG-- extra : convert_revision : 7d9b697caa3f6d5c8b3d07462093c33c7fbfea29
This commit is contained in:
@@ -70,6 +70,9 @@ xbps_configure_pkg(const char *pkgname, const char *version)
|
||||
return errno;
|
||||
|
||||
if (access(buf, R_OK) == 0) {
|
||||
if (strcmp(rootdir, "") == 0)
|
||||
rootdir = "/";
|
||||
|
||||
if (chdir(rootdir) == -1)
|
||||
return errno;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user