aboutsummaryrefslogtreecommitdiff
path: root/libbb/change_identity.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/change_identity.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/change_identity.c')
-rw-r--r--libbb/change_identity.c6
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 @@
43void change_identity ( const struct passwd *pw ) 43void 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