libbb: make parse_chown_usergroup_or_die() set unspecified uid/gid to -1
function old new delta parse_chown_usergroup_or_die 102 115 +13 chown_main 190 175 -15 start_stop_daemon_main 1043 1027 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 13/-31) Total: -18 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		@@ -112,10 +112,6 @@ int chown_main(int argc UNUSED_PARAM, char **argv)
 | 
			
		||||
	int opt, flags;
 | 
			
		||||
	struct param_t param;
 | 
			
		||||
 | 
			
		||||
	/* Just -1 might not work: uid_t may be unsigned long */
 | 
			
		||||
	param.ugid.uid = -1L;
 | 
			
		||||
	param.ugid.gid = -1L;
 | 
			
		||||
 | 
			
		||||
#if ENABLE_FEATURE_CHOWN_LONG_OPTIONS
 | 
			
		||||
	applet_long_options = chown_longopts;
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user