Bug 12387 - sysdeps/unix/sysv/linux/sh/getgid.c is missing
Summary: sysdeps/unix/sysv/linux/sh/getgid.c is missing
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.11
: P2 enhancement
Target Milestone: 2.18
Assignee: Andreas Jaeger
Depends on:
Reported: 2011-01-11 11:51 UTC by Christian Grönke
Modified: 2014-06-27 12:31 UTC (History)
2 users (show)

See Also:
Last reconfirmed:
fweimer: security-

patch to add getgid to SH arch (137 bytes, patch)
2011-01-11 11:51 UTC, Christian Grönke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Grönke 2011-01-11 11:51:43 UTC
Created attachment 5189 [details]
patch to add getgid to SH arch

When i used "getgid()" on my SH4 machine with glibc-2.11 it didn't work, but "getegid()" worked. The problem is the missing file "sysdeps/unix/sysv/linux/sh/getgid.c". I think i should be the same as "sysdeps/unix/sysv/linux/sh/getegid.c". (basically including the getgid.c file from "sysdeps/unix/sysv/linux/i386/")

This will impact for example the sshd as it uses "getgid()" to do some checks.

I checked also the the last release from the gnu-ftp (2.12.2) the file is also missing there so the error still exists.

I appended a patch that will add this file to the appropriate dir and should work.

Best regards
Comment 1 Joseph Myers 2012-02-21 01:40:08 UTC
Kaz, ping.
Comment 2 Kaz Kojima 2012-02-21 02:49:59 UTC
(In reply to comment #0)
> Created attachment 5189 [details]
> patch to add getgid to SH arch

Looks fine.  Could you please send it to the libc-alpha list
with the ChangeLog entry?
Comment 3 Andreas Jaeger 2013-05-10 18:43:42 UTC
I pushed this now to glibc git for glibc 2.18. Thanks,


commit 7187d844a1ef7dcdb0964f01a904b40041ac1cd9
Author: Christian Grönke <cgr_bugs@sysgo.com>
Date:   Fri May 10 20:40:48 2013 +0200

    Add getgid.c for SH
        [BZ #12387]
        * sysdeps/unix/sysv/linux/sh/getgid.c: New file.