diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-02-06 18:26:20 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-02-06 18:26:20 -0800 |
commit | f908c1e73a81baec74c1a2d312078dabd398bd06 (patch) | |
tree | c50c8520052dca72bba2522ff1051e839b9596ba /src/libvmon/defs/sys_stat.def | |
parent | 3006963740924fb4eff32fb513fc3306c926ead7 (diff) |
vmon: suppress "(null)" name in snapshot filenames
When this code changed to use a local, potentially heap-allocated
name variable, it started producing "(null)" when no -n/--name
was supplied, that wasn't intended.
Just use a "" name when NULL, enabling bare date-derived snapshot
filenames. This seems preferable since even if you supplied an
empty -n/--name you'd get a hyphen at the start of the name. I
can see scenarios where you have unnamed files labeled by the
output dir instead.
Diffstat (limited to 'src/libvmon/defs/sys_stat.def')
0 files changed, 0 insertions, 0 deletions