HomeFreeBSD

Fix some issues with the application of libxo to ls(1)

Description

Fix some issues with the application of libxo to ls(1)

  • Add whitespace trimming to some fields (username, group, size, inode, blocks) to avoid whitespace in JSON strings
  • fix -m mode, was invalid JSON (repeated keys), and was missing outer array container
  • in -n mode, numeric uids and gids were returned as strings

Approved by: eadler (mentor)
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2854

Details

Provenance
allanjudeAuthored on
Differential Revision
D2854: Fix issues with the libxo'ing of /bin/ls
Parents
rS285733: Fix an out-of-order execution issue regarding pkg(8):
Branches
Unknown
Tags
Unknown