Fix build break 20/63420/1 accepted/tizen/common/20160325.135023 accepted/tizen/ivi/20160324.131654 accepted/tizen/mobile/20160324.132928 accepted/tizen/tv/20160324.132752 accepted/tizen/wearable/20160324.132748 submit/tizen/20160323.233337
authorSemun Lee <sm79.lee@samsung.com>
Wed, 23 Mar 2016 23:32:46 +0000 (08:32 +0900)
committerSemun Lee <sm79.lee@samsung.com>
Wed, 23 Mar 2016 23:32:46 +0000 (08:32 +0900)
Change-Id: Ib72301f6c702effde0a0100a4ae30aaf14853d77
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
src/isadmin.c

index 130f43e..f62a449 100644 (file)
@@ -74,7 +74,7 @@ int _has_system_group_static_(uid_t uid) {
        
        /* Get all the gid of the given uid */
        
-       getpwuid(myuid, &pwd, buf, sizeof(buf), &userinfo);
+       getpwuid_r(myuid, &pwd, buf, sizeof(buf), &userinfo);
        
        /* Need to call this function now to get the number of group to make the
           malloc correctly sized */