* ext.c (regex_check_type): Set content_shift to skip the

filename.
This commit is contained in:
Pavel Roskin 2003-07-02 16:42:36 +00:00
parent 43bbd6d299
commit 452de6619d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-07-02 Pavel Roskin <proski@gnu.org>
* ext.c (regex_check_type): Set content_shift to skip the
filename.
2003-06-27 David Sterba <dave@jikos.cz>
* hotlist.c: Add buttons "Refresh" and "Free VFSs now" to Active

View File

@ -419,6 +419,7 @@ 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(s) after ':' */