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 Christian
Kaz, ping.
(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?
I pushed this now to glibc git for glibc 2.18. Thanks, Andreas 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.