diff options
author | Sergei Antonov <saproj@gmail.com> | 2014-06-07 01:36:24 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-07 03:08:09 +0400 |
commit | 97a62eaefdc196969e9d3857f65fc8a90ee1fe3c (patch) | |
tree | 92977ff2afef8dc7e783f58e1402434dc18989fc /fs/xfs/xfs_bmap_util.h | |
parent | 7f2fc81ea26717245fa7e5493a080a9723d6d596 (diff) | |
download | linux-97a62eaefdc196969e9d3857f65fc8a90ee1fe3c.tar.xz |
hfsplus: emit proper file type from readdir
hfsplus_readdir() incorrectly returned DT_REG for symbolic links and
special files. Return DT_REG, DT_LNK, DT_FIFO, DT_CHR, DT_BLK, DT_SOCK,
or DT_UNKNOWN according to mode field in catalog record. Programs
relying on information from readdir will now work correctly with HFS+.
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Cc: Anton Altaparmakov <aia21@cam.ac.uk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.h')
0 files changed, 0 insertions, 0 deletions