mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Made output of the st_mode system independent.
This commit is contained in:
parent
d1b57fbf7f
commit
6bd6aa7b50
@ -308,7 +308,7 @@ string_file_perm_octal (file_entry *fe, int len)
|
||||
{
|
||||
static char buffer [10];
|
||||
|
||||
g_snprintf (buffer, sizeof (buffer), "0%06o", fe->st.st_mode);
|
||||
g_snprintf (buffer, sizeof (buffer), "0%06lo", (unsigned long) fe->st.st_mode);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user