Re: [dev] [vis] [PATCH] Fix handling of file load errors

From: Marc André Tanner <mat_AT_brain-dump.org>
Date: Tue, 21 Apr 2015 23:39:14 +0200

On Tue, Apr 14, 2015 at 05:25:15PM +0200, Willem van de Krol wrote:
> Permission errors are handled in text_load(). To detect these errors,
> and other open() errors (opening a directory, for example), check the
> return value of text_load().
>
> This fixes a segmentation fault when opening a directory.
> Also, opening a file you are not permitted to read, will now give an
> error, instead of showing the file as empty.

Thanks again for the patch! The issue should hopefully be fixed by

 http://repo.or.cz/w/vis.git/commitdiff/7aa5fcb1a8ea079dd1c8d948a170ddc56fc1c53d

Cheers,
-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
Received on Tue Apr 21 2015 - 23:39:14 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 21 2015 - 23:48:30 CEST