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

This commit is contained in:
Pavel Roskin 2003-06-25 17:42:38 +00:00
parent 620308c65f
commit 7e3f8b9d87
2 changed files with 3 additions and 2 deletions

View File

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

View File

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