]> arthur.barton.de Git - bup.git/commit
vfs: use None for unknown uid/gid
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 8 Feb 2020 21:54:56 +0000 (22:54 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Apr 2020 20:52:32 +0000 (15:52 -0500)
commitf86e3d704af40bf98a557e58f634b1c917019821
treeba7e8f33539fb859ac619bb98d1737dd02e299ab
parent5ab20bb9d4bd403eb726fe6c5a7321a09ad2b21f
vfs: use None for unknown uid/gid

This means we show '?' instead of 0 for unknown UIDs when
numeric output is requested, as it was before.

This also uncovered a forgotten bytes annotation for the
"unknown" string ('?' should be b'?').

Somehow, this new behaviour (of printing 0 instead of ?)
also got quite enshrined in the test suite, fix that too.

And finally, on python 2, fuse doesn't accept None in the
stat struct (but does on python 3, go figure).

Fixes: f76c37383ddb ("Remove vfs (replaced by vfs2)")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/fuse-cmd.py
lib/bup/metadata.py
lib/bup/t/tvfs.py
lib/bup/vfs.py
t/test-ls