Bug#901071: Looks for a file named "-" in the current directory

2024-04-14 Thread Jakub Wilk

* Josh Triplett , 2018-06-08 09:51:
When invoked with stdin from a pipe, less looks for a file named "-" in 
the current directory.


This was fixed upstream in v509:
https://github.com/gwsw/less/commit/2195072f4676dc84

But a similar bug was reintroduced in v546:
https://github.com/gwsw/less/commit/128c1dfe9d01ca7c
https://github.com/gwsw/less/issues/289

It was finally fixed upstream in v616.

--
Jakub Wilk



Bug#901071: Looks for a file named "-" in the current directory

2018-06-08 Thread Josh Triplett
Package: less
Version: 487-0.1+b1
Severity: normal

When invoked with stdin from a pipe, less looks for a file named "-" in
the current directory.

Steps to reproduce:

$ echo foo | strace -o /tmp/strace less -E
$ grep '"-"' /tmp/strace
stat("-", 0x7ffd54fe14a0)   = -1 ENOENT (No such file or directory)



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages less depends on:
ii  debianutils  4.8.6
ii  libc62.27-3
ii  libtinfo66.1+20180210-4

less recommends no packages.

less suggests no packages.

-- no debconf information