Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157310229
D30488.id89943.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
952 B
Referenced Files
None
Subscribers
None
D30488.id89943.diff
View Options
Index: sys/compat/linux/linux_misc.c
===================================================================
--- sys/compat/linux/linux_misc.c
+++ sys/compat/linux/linux_misc.c
@@ -899,15 +899,10 @@
convpath = LUSECONVPATH(td);
dfd = (args->dfd == LINUX_AT_FDCWD) ? AT_FDCWD : args->dfd;
- if (convpath)
- LCONVPATHEXIST_AT(td, args->filename, &fname, dfd);
if (args->utimes != NULL) {
- if ((error = copyin(args->utimes, ltv, sizeof ltv))) {
- if (convpath)
- LFREEPATH(fname);
+ if ((error = copyin(args->utimes, ltv, sizeof ltv)))
return (error);
- }
tv[0].tv_sec = ltv[0].tv_sec;
tv[0].tv_usec = ltv[0].tv_usec;
tv[1].tv_sec = ltv[1].tv_sec;
@@ -919,6 +914,7 @@
error = kern_utimesat(td, dfd, args->filename, UIO_USERSPACE,
tvp, UIO_SYSSPACE);
} else {
+ LCONVPATHEXIST_AT(td, args->filename, &fname, dfd);
error = kern_utimesat(td, dfd, fname, UIO_SYSSPACE, tvp, UIO_SYSSPACE);
LFREEPATH(fname);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 5:30 AM (14 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33375797
Default Alt Text
D30488.id89943.diff (952 B)
Attached To
Mode
D30488: linux: microoptimize futimesat.
Attached
Detach File
Event Timeline
Log In to Comment