* utilunix.c (mc_realpath) [USE_SYSTEM_REALPATH]: Use realpath().
Этот коммит содержится в:
родитель
2080aad45a
Коммит
711f268786
@ -3,6 +3,8 @@
|
||||
* find.c: Implement non-recursive 'Find file' feature.
|
||||
Original patch by Andrew Borodin <aborodin@vmail.ru> .
|
||||
|
||||
* utilunix.c (mc_realpath) [USE_SYSTEM_REALPATH]: Use realpath().
|
||||
|
||||
2005-02-01 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* utilunix.c (init_groups): Use glib memory allocation functions.
|
||||
|
@ -711,6 +711,9 @@ putenv (char *string)
|
||||
char *
|
||||
mc_realpath (const char *path, char resolved_path[])
|
||||
{
|
||||
#ifdef USE_SYSTEM_REALPATH
|
||||
return realpath (path, resolved_path);
|
||||
#else
|
||||
char copy_path[PATH_MAX];
|
||||
char link_path[PATH_MAX];
|
||||
char got_path[PATH_MAX];
|
||||
@ -821,4 +824,5 @@ mc_realpath (const char *path, char resolved_path[])
|
||||
*new_path = '\0';
|
||||
strcpy (resolved_path, got_path);
|
||||
return resolved_path;
|
||||
#endif /* USE_SYSTEM_REALPATH */
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user