On 07/09/2023 04:05, Xiubo Li wrote:
int linkat(int olddirfd, const char *oldpath, int newdirfd, const char
*newpath, int flags);
BTW, for "an open file descripter", do you mean "olddirfd" ? Because
"olddirfd" is a dir's open file descripter, how is that possible it
can become linked again ?
Yes, I mean olddirfd, and the manual says: "If oldpath is an empty
string, create a link to the file referenced by olddirfd".
--
Sebastian Hasler, M.Sc.
Institute of Information Security - SEC
University of Stuttgart
Universitätsstraße 38
D-70569 Stuttgart
Germany
https://sec.uni-stuttgart.de
Phone: +49 (0) 711 685 88208