npc(1): fixes pledge invocation
This commit is contained in:
		
							parent
							
								
									7498b283ce
								
							
						
					
					
						commit
						e0b5467fb6
					
				@ -44,7 +44,7 @@ int main(int argc, char *argv[]) {
 | 
			
		||||
	char showtab = 0; /* prints tab characters in caret notation */
 | 
			
		||||
 | 
			
		||||
#ifdef __OpenBSD__
 | 
			
		||||
	if (pledge("stdio unveil", NULL) == -1 || unveil(NULL, NULL)) {
 | 
			
		||||
	if (pledge("stdio unveil", "") == -1 || unveil(NULL, NULL)) {
 | 
			
		||||
		perror(argv[0] == NULL ? program_name : argv[0]);
 | 
			
		||||
		return EX_OSERR;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user