diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-31 08:55:06 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-31 08:55:06 +0200 |
commit | 7b40f37483f8e3f2defa5f44aa819150f94597fb (patch) | |
tree | 972c08e7eab6841312e64075bdccbdfe5930adae /lib/misc.c | |
parent | c153627e370b21c5d2dc143b6dbc610bb7a01087 (diff) | |
download | rpm-7b40f37483f8e3f2defa5f44aa819150f94597fb.tar.gz rpm-7b40f37483f8e3f2defa5f44aa819150f94597fb.tar.bz2 rpm-7b40f37483f8e3f2defa5f44aa819150f94597fb.zip |
Use LOCALSTATEDIR instead of hard-coded /var.
Diffstat (limited to 'lib/misc.c')
-rw-r--r-- | lib/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/misc.c b/lib/misc.c index 4c55d0bf2..686cc0c94 100644 --- a/lib/misc.c +++ b/lib/misc.c @@ -121,7 +121,7 @@ int dosetenv(const char * name, const char * value, int overwrite) 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:" LOCALSTATEDIR "/tmp}"; const char * tempfn = NULL; const char * tfn = NULL; static int _initialized = 0; |