diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-08-20 11:58:46 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-20 11:59:58 -0700 |
commit | 1501400d9c6f4c5e82e7cb134d9a2bddac548611 (patch) | |
tree | f6c09f3ebe11f9f09393ee396fb8574bb815ebec /pkg/sentry/syscalls/linux | |
parent | 0fc7b306959e83ebf14792206c9a626490b02c2d (diff) |
getdents should return type=DT_DIR for SpecialDirectories.
It was returning DT_UNKNOWN, and this was breaking numpy.
PiperOrigin-RevId: 209459351
Change-Id: Ic6f548e23aa9c551b2032b92636cb5f0df9ccbd4
Diffstat (limited to 'pkg/sentry/syscalls/linux')
-rw-r--r-- | pkg/sentry/syscalls/linux/sys_getdents.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/sys_getdents.go b/pkg/sentry/syscalls/linux/sys_getdents.go index 178714b07..29c0d7a39 100644 --- a/pkg/sentry/syscalls/linux/sys_getdents.go +++ b/pkg/sentry/syscalls/linux/sys_getdents.go @@ -150,7 +150,7 @@ func toType(nodeType fs.InodeType) uint8 { return syscall.DT_REG case fs.Symlink: return syscall.DT_LNK - case fs.Directory: + case fs.Directory, fs.SpecialDirectory: return syscall.DT_DIR case fs.Pipe: return syscall.DT_FIFO |