diff --git a/src/ChangeLog b/src/ChangeLog index 5bc5b72ab..71a09bc66 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2003-05-29 Koblinger Egmont + * ext.c (regex_check_type): Recognize and skip "/dev/stdin:" + that can apprear in the output of new versions of file. + * util.c (unix_error_string): Convert error string from UTF-8 is glib 2 is used. diff --git a/src/ext.c b/src/ext.c index 14bc4efa9..44fd1a3e4 100644 --- a/src/ext.c +++ b/src/ext.c @@ -437,6 +437,13 @@ regex_check_type (char *filename, int file_len, char *ptr, int *have_type) for (content_shift = 15; content_string[content_shift] == ' '; content_shift++); + } else if (!islocal + && !strncmp (content_string, "/dev/stdin:", + 11)) { + /* Skip "/dev/stdin: " */ + for (content_shift = 11; + content_string[content_shift] == ' '; + content_shift++); } } else { /* No data */