diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-03-02 19:36:41 +0000 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2014-03-03 23:03:31 +0200 |
commit | 76ca310a19463e9883e2e55a88ac8be1fc171eea (patch) | |
tree | fc0a0e5c90094c920021d4204735865b692f94aa /nbd.c | |
parent | cd98d390ae009c5c1be5ae9a656e943bb47e14f0 (diff) |
linux-user: Fix getresuid, getresgid if !USE_UID16
The size of the UID/GID types depends on whether USE_UID16 is
defined. Define a new put_user_id() which writes a uid/gid
type to guest memory. This fixes getresuid and getresgid, which
were always storing 16 bits even if the uid type was 32 bits.
Reported-by: Michael Matz <matz@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'nbd.c')
0 files changed, 0 insertions, 0 deletions