adduser: fix a logical inversion which made -G GRP inoperative
Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
				
					committed by
					
						
						Denys Vlasenko
					
				
			
			
				
	
			
			
			
						parent
						
							6fd42b3d00
						
					
				
				
					commit
					0681137972
				
			@@ -190,7 +190,7 @@ int adduser_main(int argc UNUSED_PARAM, char **argv)
 | 
			
		||||
	/* add to group */
 | 
			
		||||
	/* addgroup should be responsible for dealing w/ gshadow */
 | 
			
		||||
	/* if using a pre-existing group, don't create one */
 | 
			
		||||
	if (!usegroup)
 | 
			
		||||
    	if (usegroup)
 | 
			
		||||
		addgroup_wrapper(&pw);
 | 
			
		||||
 | 
			
		||||
	/* clear the umask for this process so it doesn't
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user