print some diagnostics if the exec fails
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13835 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -846,6 +846,12 @@ main (int argc, char **argv)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	ret = simple_execvp_timed(argv[1], argv+1, 
 | 
						ret = simple_execvp_timed(argv[1], argv+1, 
 | 
				
			||||||
				  renew_func, &ctx, timeout);
 | 
									  renew_func, &ctx, timeout);
 | 
				
			||||||
 | 
					#define EX_NOEXEC	126
 | 
				
			||||||
 | 
					#define EX_NOTFOUND	127
 | 
				
			||||||
 | 
						if(ret == EX_NOEXEC)
 | 
				
			||||||
 | 
						    krb5_warnx(context, "permission denied: %s", argv[1]);
 | 
				
			||||||
 | 
						else if(ret == EX_NOTFOUND)
 | 
				
			||||||
 | 
						    krb5_warnx(context, "command not found: %s", argv[1]);
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	krb5_cc_destroy(context, ccache);
 | 
						krb5_cc_destroy(context, ccache);
 | 
				
			||||||
	_krb5_krb_dest_tkt(context, krb4_cc_name);
 | 
						_krb5_krb_dest_tkt(context, krb4_cc_name);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user