]> arthur.barton.de Git - bup.git/blobdiff - cmd/fuse-cmd.py
vfs: use None for unknown uid/gid
[bup.git] / cmd / fuse-cmd.py
index dbc0cd1f8db5d6a5738c08f2a2f3f25c87b29b40..2eb28fbcf8c0293844456c51cf9b4c2bdde09182 100755 (executable)
@@ -69,8 +69,8 @@ class BupFs(fuse.Fuse):
         # FIXME: do we want/need to do anything more with nlink?
         st = fuse.Stat(st_mode=meta.mode, st_nlink=1, st_size=meta.size)
         st.st_mode = meta.mode
-        st.st_uid = meta.uid
-        st.st_gid = meta.gid
+        st.st_uid = meta.uid or 0
+        st.st_gid = meta.gid or 0
         st.st_atime = max(0, xstat.fstime_floor_secs(meta.atime))
         st.st_mtime = max(0, xstat.fstime_floor_secs(meta.mtime))
         st.st_ctime = max(0, xstat.fstime_floor_secs(meta.ctime))