mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* src/view.c (do_view_init): Enable viewing of files with negative st_size (This reverts part of a patch I commited recently. Miguel provided a better fix for this issue).
This commit is contained in:
parent
2c66e8180a
commit
e57222fe39
@ -1,3 +1,9 @@
|
||||
Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* view.c (do_view_init): Enable viewing of files with negative
|
||||
st_size (This reverts parts of a patch I commited recently. Miguel
|
||||
provided a better fix for this issue).
|
||||
|
||||
1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* view.c (regexp_search): Use unsigned longs for all of the
|
||||
|
@ -575,11 +575,6 @@ do_view_init (WView *view, char *_command, char *_file, int start_line)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (view->s.st_size < 0) {
|
||||
message (1, MSG_ERROR, _(" Can't open \"%s\"\n File too large (%d) "),
|
||||
_file, view->s.st_size);
|
||||
return -1;
|
||||
}
|
||||
if (_file[0] && view->viewer_magic_flag && (is_gunzipable (fd, &type)) != 0)
|
||||
view->filename = g_strconcat (_file, decompress_extension(type), NULL);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user