On 02/03/11 06:33, Bastien ROUCARIES wrote: > No problem, it is even simpler because linkat, renameat does not need to pass > back the fd. fork > fchir to fd2, getpwd, concat path,fchir to fd1, exec rename, return error code
OK, thanks. One minor suggestion: I think it'd be slightly more reliable to do the getpwd in fd1 and the real work in fd2.