http://bugzilla.suse.com/show_bug.cgi?id=1095670 http://bugzilla.suse.com/show_bug.cgi?id=1095670#c7 --- Comment #7 from Dr. Werner Fink <werner@suse.com> --- (In reply to Mark Hounschell from comment #6)
https://rudin.suse.de:8894/package/binary/download/Base:System/bash/ openSUSE_Leap_15.0/x86_64/bash-4.4-lp150.361.1.x86_64.rpm
This did not work for me. Same results. Did it work for you with the provided test case?
Hmmm ... I see a SIGSEGV due not initialized current_user.user_name ... but with fixing that I see abuild@noether:/tmp> cat checkgrp.c #define _GNU_SOURCE #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *path = getenv("PATH"); char pathenv[strlen(path) + sizeof("PATH=")]; sprintf(pathenv, "PATH=%s", path); char *envp[] = {pathenv, NULL}; char *tests[] = {"/tmp/id.sh", NULL}; execvpe(tests[0], tests, envp); } abuild@noether:/tmp> cat id.sh #!/bin/sh whoami id abuild@noether:/tmp> ll total 32 -rw------- 1 root root 101 Jun 4 10:43 .xauthEJxh4h0IyV -rwsr-sr-x 1 root root 16936 Jun 4 10:48 checkgrp -rw-r--r-- 1 abuild abuild 352 Jun 4 10:48 checkgrp.c -rwxr-xr-x 1 abuild abuild 20 Jun 4 10:48 id.sh abuild@noether:/tmp> ./checkgrp abuild uid=399(abuild) gid=399(abuild) groups=399(abuild),488(video),489(tape),495(cdrom),496(audio) -- You are receiving this mail because: You are on the CC list for the bug.