Paweł Jakub Dawidek wrote: > Nope. We are in kernel area. > I want to control for example open() syscall: > static int my_open(register struct proc *p, register struct open_args *ea) > { > [...] > } > Name of file to open is in ea->path, but this name can be: ./somefile > and i need a full path to it.
Look at the "open" and "exec" source code. The "." is interpreted in the context of the current directory for the current process for the lookup. The answer is to know what "." means, in context. If you don't have a current process from which to get a pointer to the current directory vnode, then you will need to make one up yourself. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message