name_contains_dotdot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘


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