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:
Miguel de Icaza 1999-02-24 21:26:49 +00:00
parent 4a954910b7
commit 883be3772e
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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)
{