diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-06-25 12:06:29 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-06-25 12:06:29 +0400 |
commit | 6331b65843ca7cd30d47d0cc16f63f84257e2466 (patch) | |
tree | d4a7a3d83bc38317b23f53f593d3c1c090ec3552 /winsup/cygwin/syscalls.cc | |
parent | e85e106d88fc4f56d54b752bd5f2c5f7ffa798be (diff) |
* syscalls.cc (chown): Convert uid to 32 bit.
(lchown): Ditto.
(fchown): Ditto.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index d5b6be4ff..54c238e48 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -832,7 +832,8 @@ extern "C" int chown (const char * name, __uid16_t uid, __gid16_t gid) { 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 @@ -846,7 +847,8 @@ extern "C" int lchown (const char * name, __uid16_t uid, __gid16_t gid) { 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 @@ -877,7 +879,7 @@ fchown32 (int fd, __uid32_t uid, __gid32_t gid) extern "C" int 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 */ |