]> git.sur5r.net Git - u-boot/commit
sandbox/fs: Set correct filetype for unknown filetype
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Tue, 4 Oct 2016 19:46:35 +0000 (21:46 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Oct 2016 16:17:08 +0000 (10:17 -0600)
commit2f159402d9ab0dc642759d9eab3b002cde33064d
tree6f47d133408e3656f8846279410289627a161b2f
parent80793db9091b40cf0078568bb5359be0e7f43e89
sandbox/fs: Set correct filetype for unknown filetype

The "hostfs ls" command prefixes each directory entry with either DIR,
LNK or "   " if it is a directory, symlink resp. regular file, or
"???" for any other or unknown type.
The latter only works if the type is set correctly, as the entry defaults
to OS_FILET_REG and e.g. socket files show up as regular files.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Acked-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c