use /var/tmp

CVS patchset: 492
CVS date: 1996/03/29 01:26:20
This commit is contained in:
root 1996-03-29 01:26:20 +00:00
parent 1bd9ff15cc
commit d4a59f62c7
4 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ struct Script *openScript(Spec spec, int builddir, char *name)
exit(RPMERR_INTERNAL);
}
script->name = tempnam("/usr/tmp", "rpmbuild");
script->name = tempnam("/var/tmp", "rpmbuild");
script->file = fopen(script->name, "w");
/* Prepare the script */

View File

@ -103,7 +103,7 @@ int generateRPM(char *name, /* name-version-release */
}
/* Write the archive to a temp file so we can get the size */
archiveTemp = tempnam("/usr/tmp", "rpmbuild");
archiveTemp = tempnam("/var/tmp", "rpmbuild");
fd = open(archiveTemp, O_WRONLY|O_CREAT|O_TRUNC, 0644);
if (cpio_gzip(header, fd, stempdir, &archiveSize)) {
close(fd);
@ -116,7 +116,7 @@ int generateRPM(char *name, /* name-version-release */
addEntry(header, RPMTAG_ARCHIVESIZE, INT32_TYPE, &archiveSize, 1);
/* Now write the header and append the archive */
sigtarget = tempnam("/usr/tmp", "rpmbuild");
sigtarget = tempnam("/var/tmp", "rpmbuild");
fd = open(sigtarget, O_WRONLY|O_CREAT|O_TRUNC, 0644);
writeHeader(fd, header);
ifd = open(archiveTemp, O_RDONLY, 0644);
@ -1171,7 +1171,7 @@ int packageSource(Spec s, char *passPhrase)
/**** Create links for all the sources ****/
tempdir = tempnam("/usr/tmp", "rpmbuild");
tempdir = tempnam("/var/tmp", "rpmbuild");
mkdir(tempdir, 0700);
filelist = newStringBuf();

View File

@ -48,7 +48,7 @@ int doReSign(char *passPhrase, char **argv)
}
/* Write the rest to a temp file */
sigtarget = tempnam("/usr/tmp", "rpmbuild");
sigtarget = tempnam("/var/tmp", "rpmbuild");
ofd = open(sigtarget, O_WRONLY|O_CREAT|O_TRUNC, 0644);
while ((count = read(fd, buffer, sizeof(buffer))) > 0) {
if (count == -1) {

View File

@ -239,13 +239,13 @@ static int verifyPGPSignature(int fd, void *sig, char *result)
FILE *file;
/* Write out the signature */
sigfile = tempnam("/usr/tmp", "rpmsig");
sigfile = tempnam("/var/tmp", "rpmsig");
sfd = open(sigfile, O_WRONLY|O_CREAT|O_TRUNC, 0644);
write(sfd, sig, 152);
close(sfd);
/* Write out the data */
datafile = tempnam("/usr/tmp", "rpmsig");
datafile = tempnam("/var/tmp", "rpmsig");
sfd = open(datafile, O_WRONLY|O_CREAT|O_TRUNC, 0644);
while((count = read(fd, buf, 8192)) > 0) {
write(sfd, buf, count);