]> git.ipfire.org Git - people/ms/u-boot.git/commit
cramfs: basic symlink support
authorTyler Hall <tylerwhall@gmail.com>
Wed, 12 Apr 2017 20:29:17 +0000 (16:29 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 18 Apr 2017 14:27:58 +0000 (10:27 -0400)
commitd39a0d2c8413b33a5cd29466c1f6c4bda022ee58
treebe3fc94030d9aa9d71580e3ceeedcf06e8d6f4a9
parenta6ea791cb96f76fd600f6547a715e24ef66ba5e2
cramfs: basic symlink support

Handle symlinks to files in the current directory. Other cases could be
handled with additional code, but this is a start.

Add explicit errors for absolute paths and links found in the middle of
a path (directories). Other cases like '..' or '.' will result with the
file not being found as when those path components are explicitly
provided.

Add a helper to decompress a null-terminated link name which is shared
with cramfs_list_inode.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
fs/cramfs/cramfs.c