1
1

1998-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>

* complete.c (filename_completion_function): Use the vfs routines
	for name completion.
Этот коммит содержится в:
Miguel de Icaza 1998-05-31 21:35:38 +00:00
родитель 574aaebabd
Коммит b9510f4a7d
2 изменённых файлов: 9 добавлений и 4 удалений

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

@ -1,3 +1,8 @@
1998-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
* complete.c (filename_completion_function): Use the vfs routines
for name completion.
1998-05-31 Jakub Jelinek <jj@ultra.linux.cz>
* complete.c (complete_engine): Fix completions.

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

@ -137,13 +137,13 @@ char *filename_completion_function (char *text, int state)
and `command`.
Maybe a dream - UNIMPLEMENTED yet. */
}
directory = opendir (dirname);
directory = mc_opendir (dirname);
filename_len = strlen (filename);
}
/* Now that we have some state, we can read the directory. */
while (directory && (entry = readdir (directory))){
while (directory && (entry = mc_readdir (directory))){
/* Special case for no filename.
All entries except "." and ".." match. */
if (!filename_len){
@ -167,7 +167,7 @@ char *filename_completion_function (char *text, int state)
strcat (tmp, entry->d_name);
canonicalize_pathname (tmp);
/* Unix version */
if (!stat (tmp, &tempstat)){
if (!mc_stat (tmp, &tempstat)){
uid_t my_uid = getuid ();
gid_t my_gid = getgid ();
@ -198,7 +198,7 @@ char *filename_completion_function (char *text, int state)
if (!entry){
if (directory){
closedir (directory);
mc_closedir (directory);
directory = NULL;
}
if (dirname){