Package: tree / 2.2.1-4

Metadata

Package Version Patches format
tree 2.2.1-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
manpage | (download)

doc/tree.1 | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 drop ellipsis from manpage to make it valid
Bug: https://gitlab.com/OldManProgrammer/unix-tree/-/issues/17
0001 tree list call printinfo on error cases too.patch | (download)

list.c | 2 1 + 1 - 0 !
tree.c | 2 2 + 0 - 0 !
xml.c | 3 2 + 1 - 0 !
3 files changed, 5 insertions(+), 2 deletions(-)

 [patch v2] tree: list: call printinfo on error cases too

This only needs a slight adjustment of fillinfo to do an early return
if info is NULL, all other implementations already supporting that case.

The change is necessary as the markup outputs will open an
object in that function for the printfile function to write in.

BEFORE:
[
  ,"name":"toto","contents":[{"error": "error opening dir"}
  ]}
,
  {"type":"report","directories":0,"files":0}
]

AFTER:
[
  {"type":"unknown","name":"toto","contents":[{"error": "error opening dir"}
  ]}
,
  {"type":"report","directories":0,"files":0}
]

V2:
- Fix the XML printinfo to properly handle empty cases

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/tree/+bug/2113790
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1118451