summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build.c')
-rw-r--r--build.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.c b/build.c
index b3c56e229..573e9f43d 100644
--- a/build.c
+++ b/build.c
@@ -116,6 +116,8 @@ static int buildForTarget(const char *arg, struct rpmBuildArguments *ba,
specDir = rpmGetPath("%{_specdir}", NULL);
+ /* XXX Using mkstemp is difficult here. */
+ /* XXX FWIW, default %{_specdir} is root.root 0755 */
{ char tfn[64];
strcpy(tfn, "rpm-spec.XXXXXX");
tmpSpecFile = rpmGetPath("%{_specdir}/", mktemp(tfn), NULL);