1
1

* ext.c (regex_check_type): Fix previous change.

Этот коммит содержится в:
Pavel Roskin 2003-06-25 17:42:38 +00:00
родитель 620308c65f
Коммит 7e3f8b9d87
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1,5 +1,7 @@
2003-06-25 Andrew V. Samoilov <sav@bcs.zp.ua>
* ext.c (regex_check_type): Fix previous change.
* ext.c (regex_check_type): Strip tab(s) after "filename:" in
file output.

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

@ -419,10 +419,9 @@ regex_check_type (char *filename, int file_len, char *ptr, int *have_type)
if (islocal) {
if (!strncmp (content_string, filename, file_len)) {
/* Skip "filename: " */
content_shift = file_len;
if (content_string[content_shift] == ':') {
content_shift++;
/* Solaris' file prints tab after ':' */
/* Solaris' file prints tab(s) after ':' */
for (content_shift++;
content_string[content_shift] == ' '
|| content_string[content_shift] == '\t';