summaryrefslogtreecommitdiff
path: root/libmailutils/server/acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmailutils/server/acl.c')
-rw-r--r--libmailutils/server/acl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libmailutils/server/acl.c b/libmailutils/server/acl.c
index d27155aa7..d9d6362e4 100644
--- a/libmailutils/server/acl.c
+++ b/libmailutils/server/acl.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 2007-2019 Free Software Foundation, Inc.
+ Copyright (C) 2007-2024 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -410,7 +410,6 @@ spawn_prog (const char *cmdline, int *pstatus, struct run_closure *rp)
pid = fork ();
if (pid == 0)
{
- int i;
struct mu_wordsplit ws;
if (mu_wordsplit (s, &ws, MU_WRDSF_DEFFLAGS))
@@ -419,9 +418,9 @@ spawn_prog (const char *cmdline, int *pstatus, struct run_closure *rp)
mu_wordsplit_strerror (&ws));
_exit (127);
}
-
- for (i = mu_getmaxfd (); i > 2; i--)
- close (i);
+
+ mu_close_fds (3);
+
execvp (ws.ws_wordv[0], ws.ws_wordv);
_exit (127);
}

Return to:

Send suggestions and report system problems to the System administrator.