diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-13 09:31:27 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-13 09:31:27 +0200 |
commit | d16b42438599675da2e86201235bdaf4d3f59cca (patch) | |
tree | af19f087a33232fa743dbb8aa964c3b9a302e6c7 /src/apk.c | |
parent | b8940df6b9b9f4aa644cb1dfa91732b451d43ffd (diff) | |
download | apk-tools-d16b42438599675da2e86201235bdaf4d3f59cca.tar.gz apk-tools-d16b42438599675da2e86201235bdaf4d3f59cca.tar.bz2 apk-tools-d16b42438599675da2e86201235bdaf4d3f59cca.tar.xz apk-tools-d16b42438599675da2e86201235bdaf4d3f59cca.zip |
apk: honour --root command line switch
Was broken by earlier ROOT environment commit.
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -115,7 +115,8 @@ int main(int argc, char **argv) argc -= optind; argv += optind; - apk_root = getenv("ROOT"); + if (apk_root == NULL) + apk_root = getenv("ROOT"); if (apk_root == NULL) apk_root = "/"; |