Revision 1e5de2837c166535f9bb4232bfe97ea1f9fc7a1c authored by Linus Torvalds on 08 July 2007, 19:02:55 UTC, committed by Linus Torvalds on 08 July 2007, 19:02:55 UTC
Commit 1c710c896eb461895d3c399e15bb5f20b39c9073 added the utimensat()
system call, but didn't handle the case of checking for the writability
of the target right, when the target was a file descriptor, not a
filename.

We cannot use vfs_permission(MAY_WRITE) for that case, and need to
simply check whether the file descriptor is writable.  The oops from
using the wrong function was noticed and narrowed down by Markus
Trippelsdorf.

Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Al Viro <viro@ftp.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4e99325
History
File Mode Size
lxdialog
.gitignore -rw-r--r-- 147 bytes
Makefile -rw-r--r-- 8.5 KB
POTFILES.in -rw-r--r-- 123 bytes
conf.c -rw-r--r-- 11.7 KB
confdata.c -rw-r--r-- 16.6 KB
expr.c -rw-r--r-- 25.2 KB
expr.h -rw-r--r-- 4.9 KB
gconf.c -rw-r--r-- 40.6 KB
gconf.glade -rw-r--r-- 24.5 KB
images.c -rw-r--r-- 6.4 KB
kconfig_load.c -rw-r--r-- 644 bytes
kxgettext.c -rw-r--r-- 3.9 KB
lex.zconf.c_shipped -rw-r--r-- 54.7 KB
lkc.h -rw-r--r-- 3.6 KB
lkc_proto.h -rw-r--r-- 1.8 KB
mconf.c -rw-r--r-- 25.1 KB
menu.c -rw-r--r-- 10.4 KB
qconf.cc -rw-r--r-- 41.9 KB
qconf.h -rw-r--r-- 7.8 KB
symbol.c -rw-r--r-- 17.5 KB
util.c -rw-r--r-- 2.2 KB
zconf.gperf -rw-r--r-- 1.3 KB
zconf.hash.c_shipped -rw-r--r-- 10.1 KB
zconf.l -rw-r--r-- 6.1 KB
zconf.tab.c_shipped -rw-r--r-- 64.0 KB
zconf.y -rw-r--r-- 14.6 KB

back to top