Change default %_tmppath value to %_tmpdir
This commit is contained in:
parent
120ce7358f
commit
a538345515
@ -169,7 +169,7 @@ static int rpmMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid)
|
||||
|
||||
int makeTempFile(const char * prefix, const char ** fnptr, FD_t * fdptr)
|
||||
{
|
||||
const char * tpmacro = "%{?_tmppath:%{_tmppath}}%{!?_tmppath:/var/tmp}";
|
||||
const char * tpmacro = "%{?_tmppath:%{_tmppath}}%{!?_tmppath:%{_tmpdir}}";
|
||||
const char * tempfn = NULL;
|
||||
const char * tfn = NULL;
|
||||
static int _initialized = 0;
|
||||
|
@ -510,7 +510,7 @@ static void rpmSetDefaults(void)
|
||||
setVar ("_preScriptEnvironment", prescriptenviron);
|
||||
|
||||
setVar ("_topdir", "%{_usr}/src/RPM");
|
||||
setVar ("_tmppath", "%{_var}/tmp");
|
||||
setVar ("_tmppath", "%{_tmpdir}");
|
||||
setVar ("_dbpath", "%{_var}/lib/rpm");
|
||||
setVar ("_defaultdocdir", "%{_usr}/share/doc");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user