summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2008-04-16 13:40:05 +0200
committerJindrich Novy <jnovy@redhat.com>2008-04-16 13:40:05 +0200
commit23f6917b10b6579f39199e4cf831bb13fc596824 (patch)
tree36d517bfd34dfb25d89d2477bac56e3560c772c6
parent58fdb16e75b2200ba509f726f938493eb43d54ea (diff)
downloadlibrpm-tizen-23f6917b10b6579f39199e4cf831bb13fc596824.tar.gz
librpm-tizen-23f6917b10b6579f39199e4cf831bb13fc596824.tar.bz2
librpm-tizen-23f6917b10b6579f39199e4cf831bb13fc596824.zip
Don't use mktemp(), we are sure mkstemp() is available now
-rw-r--r--build.c4
-rw-r--r--lib/rpmchecksig.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/build.c b/build.c
index 2e9ab8cd1..7ef1b314e 100644
--- a/build.c
+++ b/build.c
@@ -112,11 +112,7 @@ static char * getTarSpec(const char *arg)
specDir = rpmGetPath("%{_specdir}", NULL);
tmpSpecFile = rpmGetPath("%{_specdir}/", "rpm-spec.XXXXXX", NULL);
-#if defined(HAVE_MKSTEMP)
(void) close(mkstemp(tmpSpecFile));
-#else
- (void) mktemp(tmpSpecFile);
-#endif
for (try = tryspec; *try != NULL; try++) {
FILE *fp;
diff --git a/lib/rpmchecksig.c b/lib/rpmchecksig.c
index 2b953bcfa..43f3f40d8 100644
--- a/lib/rpmchecksig.c
+++ b/lib/rpmchecksig.c
@@ -331,11 +331,7 @@ static int rpmReSign(rpmts ts, QVA_t qva, ARGV_const_t argv)
/* Write the lead/signature of the output rpm */
strcpy(tmprpm, rpm);
strcat(tmprpm, ".XXXXXX");
-#if defined(HAVE_MKSTEMP)
(void) close(mkstemp(tmprpm));
-#else
- (void) mktemp(tmprpm);
-#endif
trpm = tmprpm;
if (manageFile(&ofd, trpm, O_WRONLY|O_CREAT|O_TRUNC))