diff --git a/build/build.c b/build/build.c index dc5b3156c..5ea9aefc4 100644 --- a/build/build.c +++ b/build/build.c @@ -107,7 +107,7 @@ int doScript(Spec spec, int what, const char *name, StringBuf sb, int test) } if (makeTempFile(rootURL, &scriptName, &fd) || fd == NULL || Ferror(fd)) { - rpmError(RPMERR_SCRIPT, _("Unable to open temp file %s."), scriptName); + rpmError(RPMERR_SCRIPT, _("Unable to open temp file.")); rc = RPMERR_SCRIPT; goto exit; } diff --git a/build/pack.c b/build/pack.c index f0bf85998..0d7fba162 100644 --- a/build/pack.c +++ b/build/pack.c @@ -309,7 +309,7 @@ int writeRPM(Header h, const char *fileName, int type, /* Write the header */ if (makeTempFile(NULL, &sigtarget, &fd)) { - rpmError(RPMERR_CREATE, _("Unable to open temp file %s."), sigtarget); + rpmError(RPMERR_CREATE, _("Unable to open temp file.")); return RPMERR_CREATE; }