* syscalls.cc (chown): Convert uid to 32 bit.
(lchown): Ditto. (fchown): Ditto.
This commit is contained in:
parent
e85e106d88
commit
6331b65843
|
@ -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.
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue