summaryrefslogtreecommitdiff
path: root/buildstream/_fuse
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2018-09-04 14:30:35 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-09-18 13:22:38 +0000
commit081dcafa03f1b2604ce52e9dc5be696444d8f71e (patch)
tree8a674f8277f6d7b6c06d2971c9d7888e136db922 /buildstream/_fuse
parent97071b6ee598aad5ed159bb038bb333a468f065e (diff)
downloadbuildstream-081dcafa03f1b2604ce52e9dc5be696444d8f71e.tar.gz
fuse: Report the correct device number for devices
This fixes all devices being mapped to the non-existant device 0, which prevents being able to use even safe devices like /dev/null through the hardlinks FUSE layer.
Diffstat (limited to 'buildstream/_fuse')
-rw-r--r--buildstream/_fuse/hardlinks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_fuse/hardlinks.py b/buildstream/_fuse/hardlinks.py
index 1386f14cf..f9e2b959b 100644
--- a/buildstream/_fuse/hardlinks.py
+++ b/buildstream/_fuse/hardlinks.py
@@ -121,7 +121,7 @@ class SafeHardlinkOps(Operations):
st = os.lstat(full_path)
return dict((key, getattr(st, key)) for key in (
'st_atime', 'st_ctime', 'st_gid', 'st_mode',
- 'st_mtime', 'st_nlink', 'st_size', 'st_uid'))
+ 'st_mtime', 'st_nlink', 'st_size', 'st_uid', 'st_rdev'))
def readdir(self, path, fh):
full_path = self._full_path(path)