commit | b27cf31003774e5aa13491ccb8f1f0721dc5b920 | [log] [tgz] |
---|---|---|
author | Ron Yorston <rmy@pobox.com> | Fri Jul 31 17:33:24 2015 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Aug 03 16:41:19 2015 +0200 |
tree | f2b72d7111d1033063524dd411f9e267bcac1ee4 | |
parent | ad27a6d3265b2e8a27030a01121afed639bed2da [diff] |
less: further tweaks to regular file detection Test explicitly for REOPEN flags: update_num_lines is called unconditionally so (num_lines != NOT_REGULAR_FILE) is also true when num_lines contains a valid number of lines. The call to fstat doesn't need to be in #if ENABLE_FEATURE_LESS_FLAGS: the whole function is already in such a test. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>