1
1

* util.c (strip_password): Add "/#sh:".

Этот коммит содержится в:
Andrew V. Samoilov 2004-10-13 12:23:56 +00:00
родитель 13998a614c
Коммит d79d618c6d
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -1,3 +1,7 @@
2004-10-13 Jindrich Novy <jnovy@redhat.com>
* util.c (strip_password): Add "/#sh:".
2004-10-12 Andrew V. Samoilov <sav@bcs.zp.ua>
* myslang.h: Check USE_INCLUDED_SLANG properly.

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

@ -405,7 +405,7 @@ string_perm (mode_t mode_bits)
the password.
has_prefix = 1: Search p for known url prefixes. If found delete
the password from the url.
Cavevat: only the first url is found
Caveat: only the first url is found
*/
char *
strip_password (char *p, int has_prefix)
@ -417,6 +417,7 @@ strip_password (char *p, int has_prefix)
{"/#mc:", 5},
{"ftp://", 6},
{"/#smb:", 6},
{"/#sh:", 5}
};
char *at, *inner_colon, *dir;
size_t i;