mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* utilunix.c (mc_tmpdir): Convert uid to unsigned long for
pathname of the temporary directory.
This commit is contained in:
parent
8d69563572
commit
11f8d4e2ea
@ -1,8 +1,8 @@
|
|||||||
2004-10-23 Roland Illig <roland.illig@gmx.de>
|
2004-10-23 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* complete.c (environ): Don't declare environ on Cygwin.
|
* complete.c (environ): Don't declare environ on Cygwin.
|
||||||
* utilunix.c (mc_tmpdir): Convert uid to int for pathname
|
* utilunix.c (mc_tmpdir): Convert uid to unsigned long for
|
||||||
of the temporary directory.
|
pathname of the temporary directory.
|
||||||
|
|
||||||
From Pavel Tsekov <ptsekov gmx net>.
|
From Pavel Tsekov <ptsekov gmx net>.
|
||||||
|
|
||||||
|
@ -325,8 +325,8 @@ mc_tmpdir (void)
|
|||||||
g_snprintf (buffer, sizeof (buffer), "%s/mc-%s", sys_tmp,
|
g_snprintf (buffer, sizeof (buffer), "%s/mc-%s", sys_tmp,
|
||||||
pwd->pw_name);
|
pwd->pw_name);
|
||||||
else
|
else
|
||||||
g_snprintf (buffer, sizeof (buffer), "%s/mc-%d", sys_tmp,
|
g_snprintf (buffer, sizeof (buffer), "%s/mc-%lu", sys_tmp,
|
||||||
(int) getuid ());
|
(unsigned long) getuid ());
|
||||||
|
|
||||||
canonicalize_pathname (buffer);
|
canonicalize_pathname (buffer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user