name_contains_dotdot(9)
π NAME π
Hey bestie π«Ά, this is name_contains_dotdot(9) from the Kernel API Manual, and it is here to check if a file name contains .. path components. That's the whole assignment β it's giving path-component detective energy, no cap. πβ¨
β¨ SYNOPSIS β¨
bool name_contains_dotdot (const char *name );
Okay so it takes a const char *name and hands you back a bool, periodt. π
π ARGUMENTS π
nameβ the file path string to check. It searches for..surrounded by either'/'or the start/end of the string. So yes bestie, that exact surrounded-by-slashes-or-boundaries situation is the moment. ππ
π SEE ALSO π
Kernel file squad: ./include/linux/fs.h π
enum positive_aop_returns(9)struct address_space(9)struct file_ra_state(9)struct file(9)i_uid_into_vfsuid(9)i_uid_needs_update(9)i_uid_update(9)i_gid_into_vfsgid(9)i_gid_needs_update(9)i_gid_update(9)inode_fsuid_set(9)inode_fsgid_set(9)fsuidgid_has_mapping(9)inode_set_ctime(9)file_write_started(9)file_write_not_started(9)struct renamedata(9)is_mgtime(9)iput_if_not_last(9)is_idmapped_mnt(9)file_start_write(9)file_end_write(9)kiocb_start_write(9)kiocb_end_write(9)name_is_dot_dotdot(9)inode_dio_begin(9)inode_dio_end(9)generic_ci_validate_strict_name(9)
Source/version cuteness for the very end π: it's from ./include/linux, dated October 2026, and it's the name_contains_dotdot(9) page. Bye bestie, go check those dots! π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms