The patch titled lutimesat: actual syscall and wire-up on i386 has been added to the -mm tree. Its filename is lutimesat-actual-syscall-and-wire-up-on-i386.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: lutimesat: actual syscall and wire-up on i386 From: Alexey Dobriyan <adobriyan@xxxxxxxxxx> lutimesat(2) does everything futimesat(2) does except it doesn't follow symlinks. It could be used by tar(1) and cp(1). FreeBSD and NetBSD have lutimes(2) which can be emulated by C library: lutimesat(AT_FDCWD, filename, utimes) Closes http://bugme.osdl.org/show_bug.cgi?id=4433 Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: Michael Kerrisk <mtk-manpages@xxxxxxx> Cc: Ulrich Drepper <drepper@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- arch/i386/kernel/syscall_table.S | 1 + fs/utimes.c | 9 +++++++++ include/asm-i386/unistd.h | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) diff -puN arch/i386/kernel/syscall_table.S~lutimesat-actual-syscall-and-wire-up-on-i386 arch/i386/kernel/syscall_table.S --- a/arch/i386/kernel/syscall_table.S~lutimesat-actual-syscall-and-wire-up-on-i386 +++ a/arch/i386/kernel/syscall_table.S @@ -319,3 +319,4 @@ ENTRY(sys_call_table) .long sys_move_pages .long sys_getcpu .long sys_epoll_pwait + .long sys_lutimesat /* 320 */ diff -puN fs/utimes.c~lutimesat-actual-syscall-and-wire-up-on-i386 fs/utimes.c --- a/fs/utimes.c~lutimesat-actual-syscall-and-wire-up-on-i386 +++ a/fs/utimes.c @@ -105,3 +105,12 @@ asmlinkage long sys_utimes(char __user * { return sys_futimesat(AT_FDCWD, filename, utimes); } + +asmlinkage long sys_lutimesat(int dfd, char __user *filename, struct timeval __user *utimes) +{ + struct timeval times[2]; + + if (utimes && copy_from_user(×, utimes, sizeof(times))) + return -EFAULT; + return do_utimes(dfd, filename, utimes ? times : NULL, AT_SYMLINK_NOFOLLOW); +} diff -puN include/asm-i386/unistd.h~lutimesat-actual-syscall-and-wire-up-on-i386 include/asm-i386/unistd.h --- a/include/asm-i386/unistd.h~lutimesat-actual-syscall-and-wire-up-on-i386 +++ a/include/asm-i386/unistd.h @@ -325,10 +325,11 @@ #define __NR_move_pages 317 #define __NR_getcpu 318 #define __NR_epoll_pwait 319 +#define __NR_lutimesat 320 #ifdef __KERNEL__ -#define NR_syscalls 320 +#define NR_syscalls 321 #define __ARCH_WANT_IPC_PARSE_VERSION #define __ARCH_WANT_OLD_READDIR _ Patches currently in -mm which might be from adobriyan@xxxxxxxxxx are fix-null-nsproxy-dereference-in-proc-mounts.patch core-dumping-unreadable-binaries-via-pt_interp.patch sysctl_ms_jiffies-fix-oldlen-semantics.patch consolidate-default-sched_clock.patch fix-rmmod-read-write-races-in-proc-entries.patch consolidate-bust_spinlocks.patch extract-and-use-wake_up_klogd.patch introduce-and-use-get_task_mnt_ns.patch introduce-and-use-get_task_mnt_ns-tweaks.patch lutimesat-simplify-utime2.patch lutimesat-extend-do_utimes-with-flags.patch lutimesat-actual-syscall-and-wire-up-on-i386.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html