CVS patchset: 1777
CVS date: 1997/07/30 22:19:39
struct cpioFileMapping * cpioList;
int status;
void *oldhandler;
+ char savecwd[1024];
gzipbin = rpmGetVar(RPMVAR_GZIPBIN);
close(toGzip[0]);
+ getcwd(savecwd, 1024);
+
if (tempdir) {
chdir(tempdir);
} else if (rpmGetVar(RPMVAR_ROOT)) {
}
}
+ chdir(savecwd);
+
rc = cpioBuildArchive(toGzip[1], cpioList, numMappings, NULL, NULL, NULL);
close(toGzip[1]); /* Terminates the gzip process */