mirror of
				https://git.code.sf.net/p/linux-ima/ima-evm-utils
				synced 2025-11-04 06:40:49 +01:00 
			
		
		
		
	ima-evm-utils: Never exit with -1 code
Change main() return code from -1 to 125 as -1 is not really valid exit code. 125 is choosen because exit codes for signals start from 126. Signed-off-by: Vitaly Chikunov <vt@altlinux.org> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
		
				
					committed by
					
						
						Mimi Zohar
					
				
			
			
				
	
			
			
			
						parent
						
							fbba18c477
						
					
				
				
					commit
					9c2298c367
				
			@@ -2114,6 +2114,8 @@ int main(int argc, char *argv[])
 | 
				
			|||||||
				break;
 | 
									break;
 | 
				
			||||||
			log_err("%s\n", ERR_error_string(error, NULL));
 | 
								log_err("%s\n", ERR_error_string(error, NULL));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							if (err < 0)
 | 
				
			||||||
 | 
								err = 125;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (eng) {
 | 
						if (eng) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user