aboutsummaryrefslogtreecommitdiff
path: root/src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/exec.c b/src/exec.c
index 3abfde5..916e58e 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -1,11 +1,11 @@
/*
exec.c
This file is part of GNU Anubis.
- Copyright (C) 2001-2014 The Anubis Team.
+ Copyright (C) 2001-2024 The Anubis Team.
GNU Anubis is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
@@ -100,14 +100,13 @@ make_local_connection_fd (char *exec_path, char **exec_args)
if (check_filename (exec_path, 0) == 0)
return -1;
if (VERBOSE > options.termlevel) /* Extra check to avoid unnecessary
memory allocation */
{
- char *args;
- argcv_string (-1, exec_args, &args);
+ char *args = argv_string (exec_args);
info (VERBOSE, _("Executing %s..."), args);
free (args);
}
if (make_sockets (fd))
return -1;
@@ -152,33 +151,12 @@ make_local_connection (char *exec_path, char **exec_args)
if (fd == -1)
return NULL;
net_create_stream (&str, fd);
return str;
}
-/*************************************
- Use an external program, which works
- on standard input and output.
-**************************************/
-
-char *
-external_program (int *rs, char *path, char *src, char *dst, int dstsize)
-{
- int rc;
- char *ret;
- int argc;
- char **argv = 0;
-
- if ((rc = argcv_get (path, "", "#", &argc, &argv)))
- anubis_error (EX_SOFTWARE, rc, _("argcv_get failed"));
-
- ret = exec_argv (rs, argv[0], argv, src, dst, dstsize);
- argcv_free (argc, argv);
- return ret;
-}
-
char *
exec_argv (int *rs, char *path, char **argv, char *src, char *dst,
int dstsize)
{
int status;
int fd;

Return to:

Send suggestions and report system problems to the System administrator.