xbps-create: use the right var in chdir(2) doh.

This commit is contained in:
Juan RP 2012-11-25 11:03:03 +01:00
parent 743eabb88e
commit b7b6f7f1b4

View File

@ -710,7 +710,7 @@ main(int argc, char **argv)
process_destdir(mutable_files);
/* Back to original cwd after file tree walk processing */
if (chdir(cwd) == -1)
if (chdir(p) == -1)
die("cannot chdir() to cwd %s:", cwd);
/*