* syscalls.cc (chown): Convert uid to 32 bit.

(lchown): Ditto.
	(fchown): Ditto.
This commit is contained in:
Corinna Vinschen 2002-06-25 08:06:29 +00:00
parent e85e106d88
commit 6331b65843
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-06-25 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (chown): Convert uid to 32 bit.
(lchown): Ditto.
(fchown): Ditto.
2002-06-24 Christopher Faylor <cgf@redhat.com> 2002-06-24 Christopher Faylor <cgf@redhat.com>
* dtable.cc (dtable::find_unused_handle): Avoid coercion. * dtable.cc (dtable::find_unused_handle): Avoid coercion.

View File

@ -832,7 +832,8 @@ extern "C" int
chown (const char * name, __uid16_t uid, __gid16_t gid) chown (const char * name, __uid16_t uid, __gid16_t gid)
{ {
sigframe thisframe (mainthread); sigframe thisframe (mainthread);
return chown_worker (name, PC_SYM_FOLLOW, uid, gid16togid32 (gid)); return chown_worker (name, PC_SYM_FOLLOW,
uid16touid32 (uid), gid16togid32 (gid));
} }
extern "C" int extern "C" int
@ -846,7 +847,8 @@ extern "C" int
lchown (const char * name, __uid16_t uid, __gid16_t gid) lchown (const char * name, __uid16_t uid, __gid16_t gid)
{ {
sigframe thisframe (mainthread); sigframe thisframe (mainthread);
return chown_worker (name, PC_SYM_NOFOLLOW, uid, gid16togid32 (gid)); return chown_worker (name, PC_SYM_NOFOLLOW,
uid16touid32 (uid), gid16togid32 (gid));
} }
extern "C" int extern "C" int
@ -877,7 +879,7 @@ fchown32 (int fd, __uid32_t uid, __gid32_t gid)
extern "C" int extern "C" int
fchown (int fd, __uid16_t uid, __gid16_t gid) fchown (int fd, __uid16_t uid, __gid16_t gid)
{ {
return fchown32 (fd, uid, gid16togid32 (gid)); return fchown32 (fd, uid16touid32 (uid), gid16togid32 (gid));
} }
/* umask: POSIX 5.3.3.1 */ /* umask: POSIX 5.3.3.1 */