Add 32bit version of lutimes so untar doesn't mess up sym-links on amd64.
This commit is contained in:
parent
23350221ac
commit
08a3081da8
@ -1220,6 +1220,27 @@ freebsd32_utimes(struct thread *td, struct freebsd32_utimes_args *uap)
|
||||
return (kern_utimes(td, uap->path, UIO_USERSPACE, sp, UIO_SYSSPACE));
|
||||
}
|
||||
|
||||
int
|
||||
freebsd32_lutimes(struct thread *td, struct freebsd32_lutimes_args *uap)
|
||||
{
|
||||
struct timeval32 s32[2];
|
||||
struct timeval s[2], *sp;
|
||||
int error;
|
||||
|
||||
if (uap->tptr != NULL) {
|
||||
error = copyin(uap->tptr, s32, sizeof(s32));
|
||||
if (error)
|
||||
return (error);
|
||||
CP(s32[0], s[0], tv_sec);
|
||||
CP(s32[0], s[0], tv_usec);
|
||||
CP(s32[1], s[1], tv_sec);
|
||||
CP(s32[1], s[1], tv_usec);
|
||||
sp = s;
|
||||
} else
|
||||
sp = NULL;
|
||||
return (kern_lutimes(td, uap->path, UIO_USERSPACE, sp, UIO_SYSSPACE));
|
||||
}
|
||||
|
||||
int
|
||||
freebsd32_futimes(struct thread *td, struct freebsd32_futimes_args *uap)
|
||||
{
|
||||
|
@ -476,8 +476,8 @@
|
||||
275 AUE_NULL MNOPROTO { int lchown(char *path, uid_t uid, \
|
||||
gid_t gid); } netbsd_lchown \
|
||||
lchown_args int
|
||||
276 AUE_NULL MNOPROTO { int lutimes(char *path, \
|
||||
struct timeval *tptr); }
|
||||
276 AUE_NULL MSTD { int freebsd32_lutimes(char *path, \
|
||||
struct timeval32 *tptr); }
|
||||
277 AUE_NULL MNOPROTO { int msync(void *addr, size_t len, \
|
||||
int flags); } netbsd_msync msync_args int
|
||||
278 AUE_NULL MNOPROTO { int nstat(char *path, struct nstat *ub); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user