1
1

* utilunix.c (mc_realpath) [USE_SYSTEM_REALPATH]: Use realpath().

Этот коммит содержится в:
Andrew V. Samoilov 2005-02-02 18:28:49 +00:00
родитель 2080aad45a
Коммит 711f268786
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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 */
}