Re: [PATCH 1/3] NEW VERSION: *at syscalls: Implementation

From: Tony Luck
Date: Mon Feb 06 2006 - 15:24:18 EST


Does sys_mkdirat() work? I applied Ken's patch to hook up the calls for
ia64, but when I tried:

long sys_mkdirat(int dfd, const char *pathname, int mode)
{
return syscall(__NR_mknodat, dfd, pathname, mode);
}

...

sys_mkdirat(AT_FDCWD, "xxx", 0777);

I ended up with a regular file named "xxx", not a directory.
$ ls -l xxx
-rwsrwxr-x 1 aegl aegl 0 Feb 6 12:23 xxx

Hmmm, setuid too!

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/