mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-26 12:14:47 +03:00
1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
* util.c: Test for glibc/linux and if so, do not use getwd, but getcwd as on this system it is better than popen ("pwd").
This commit is contained in:
parent
4a954910b7
commit
883be3772e
@ -1,3 +1,8 @@
|
||||
1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* util.c: Test for glibc/linux and if so, do not use getwd, but
|
||||
getcwd as on this system it is better than popen ("pwd").
|
||||
|
||||
1999-02-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* setup.c: Declare extern int tree_panel_visible for the GNOME
|
||||
|
10
src/util.c
10
src/util.c
@ -776,6 +776,16 @@ char *strip_ctrl_codes (char *s)
|
||||
|
||||
#endif /* VFS_STANDALONE */
|
||||
|
||||
/*
|
||||
* Ok, on systems running glibc, getcwd does not use popen pwd on
|
||||
* Linux at least
|
||||
*/
|
||||
#ifdef __GLIBC__
|
||||
# ifdef linux
|
||||
# undef HAVE_GETWD
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* getwd is better than getcwd, the later uses a popen ("pwd"); */
|
||||
char *get_current_wd (char *buffer, int size)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user