* vfs.c (mc_return_cwd): Use g_get_current_dir().

This commit is contained in:
Pavel Roskin 2001-07-18 03:44:38 +00:00
parent 7f952351c0
commit 613dc4d1ca
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2001-07-17 Pavel Roskin <proski@gnu.org>
* vfs.c (mc_return_cwd): Use g_get_current_dir().
2001-07-15 Pavel Roskin <proski@gnu.org>
* smbfs.c: Rename authinfo to smb_authinfo and

View File

@ -602,9 +602,7 @@ mc_return_cwd (void)
struct stat my_stat, my_stat2;
if (!vfs_rosplit (current_dir)){
static char buffer[MC_MAXPATHLEN];
p = get_current_wd (buffer, MC_MAXPATHLEN);
p = g_get_current_dir ();
if (!p) /* One of the directories in the path is not readable */
return current_dir;
@ -615,7 +613,7 @@ mc_return_cwd (void)
my_stat.st_dev != my_stat2.st_dev ||
!cd_symlinks){
g_free (current_dir);
current_dir = g_strdup (p);
current_dir = p;
return p;
} /* Otherwise we return current_dir below */
}