4 ms·
For sure, in the case of mkdir() and fopen() you need to watch out for relative pathnames containing “../“. Is that the sort of thing you had in mind?
by hanche 5y ago
For sure, in the case of mkdir() and fopen() you need to watch out for relative pathnames containing “../“. Is that the sort of thing you had in mind?
- christophilus 5y agoAnd semicolons, maybe other things: “myfanciuserinput.mp3 && pwned > /etc/hosts”
- greenyoda 5y agoThat syntax is interpreted by the shell. It means nothing to mkdir() (an OS-level API) or fopen() (a C library call).