diff options
Diffstat (limited to 'libbb/change_identity.c')
-rw-r--r-- | libbb/change_identity.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/change_identity.c b/libbb/change_identity.c index 819b216e0..c2b73eeb8 100644 --- a/libbb/change_identity.c +++ b/libbb/change_identity.c | |||
@@ -43,12 +43,12 @@ | |||
43 | void change_identity ( const struct passwd *pw ) | 43 | void change_identity ( const struct passwd *pw ) |
44 | { | 44 | { |
45 | if ( initgroups ( pw-> pw_name, pw-> pw_gid ) == -1 ) | 45 | if ( initgroups ( pw-> pw_name, pw-> pw_gid ) == -1 ) |
46 | perror_msg_and_die ( "cannot set groups" ); | 46 | bb_perror_msg_and_die ( "cannot set groups" ); |
47 | endgrent ( ); | 47 | endgrent ( ); |
48 | 48 | ||
49 | if ( setgid ( pw-> pw_gid )) | 49 | if ( setgid ( pw-> pw_gid )) |
50 | perror_msg_and_die ( "cannot set group id" ); | 50 | bb_perror_msg_and_die ( "cannot set group id" ); |
51 | if ( setuid ( pw->pw_uid )) | 51 | if ( setuid ( pw->pw_uid )) |
52 | perror_msg_and_die ( "cannot set user id" ); | 52 | bb_perror_msg_and_die ( "cannot set user id" ); |
53 | } | 53 | } |
54 | 54 | ||