mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* configure.ac: Add --disable-exec flag to disable all remote program
execution. --disable-exec implies --disable-ldap and --disable-mailto. Also look in /usr/lib for sendmail. If sendmail is not found, do not default - just fail. * exec.c: Provide stubs for exec_ functions when NO_EXEC is defined.
This commit is contained in:
parent
6dc53d136a
commit
cc0074dc5a
4 changed files with 48 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-05-03 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* exec.c: Provide stubs for exec_ functions when NO_EXEC is
|
||||
defined.
|
||||
|
||||
2002-05-02 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* photoid.h, photoid.c (parse_image_header, image_type_to_string):
|
||||
|
|
14
g10/exec.c
14
g10/exec.c
|
@ -41,6 +41,19 @@
|
|||
#include "util.h"
|
||||
#include "exec.h"
|
||||
|
||||
#ifdef NO_EXEC
|
||||
int exec_write(struct exec_info **info,const char *program,
|
||||
const char *args_in,int writeonly,int binary)
|
||||
{
|
||||
log_error(_("no remote program execution supported\n"));
|
||||
return G10ERR_GENERAL;
|
||||
}
|
||||
|
||||
int exec_read(struct exec_info *info) { return G10ERR_GENERAL; }
|
||||
int exec_finish(struct exec_info *info) { return G10ERR_GENERAL; }
|
||||
|
||||
#else /* ! NO_EXEC */
|
||||
|
||||
#ifndef HAVE_MKDTEMP
|
||||
char *mkdtemp(char *template);
|
||||
#endif
|
||||
|
@ -494,3 +507,4 @@ int exec_finish(struct exec_info *info)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif /* ! NO_EXEC */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue