]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
create_inode: Find subdirectory in do_write_internal
authorEarl Chew <earl_chew@yahoo.com>
Sat, 20 Feb 2021 16:47:46 +0000 (08:47 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Feb 2021 16:27:14 +0000 (11:27 -0500)
commitbc50f5abd7697e6c1c396983c1a083d560b29bff
tree1f91ce89738ca5a10b5c459de257b908ec02c577
parentea82add307c4bc820423abc8acc2f155720cf914
create_inode: Find subdirectory in do_write_internal

Follow the example in do_mkdir_internal, and do_symlink_internal,
and find the correct parent directory if the destination
is not just a plain basename.

https://github.com/tytso/e2fsprogs/issues/61

Signed-off-by: Earl Chew <earl_chew@yahoo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c
tests/t_write_subdirectory/name [new file with mode: 0644]
tests/t_write_subdirectory/script [new file with mode: 0644]