]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Don't force location of tmp
authorosdl.org!shemminger <osdl.org!shemminger>
Tue, 8 Jun 2004 22:51:46 +0000 (22:51 +0000)
committerosdl.org!shemminger <osdl.org!shemminger>
Tue, 8 Jun 2004 22:51:46 +0000 (22:51 +0000)
(Logical change 1.14)

misc/ifstat.c

index 67489b9a753bd880a2c9aa3c4326852a53c733eb..6e407d4d99a049e1bd7dafa52641ac4ac4debe47 100644 (file)
@@ -639,7 +639,7 @@ int main(int argc, char *argv[])
        if (getenv("IFSTAT_HISTORY"))
                snprintf(hist_name, sizeof(hist_name), getenv("IFSTAT_HISTORY"));
        else
-               sprintf(hist_name, "/tmp/.ifstat.u%d", getuid());
+               sprintf(hist_name, "%s/.ifstat.u%d", P_tmpdir, getuid());
 
        if (reset_history)
                unlink(hist_name);