Please do not send bug reports or questions about it to
the Make maintainers.
-Copyright (C) 1988-2020 Free Software Foundation, Inc.
+Copyright (C) 1988-2022 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify it under the
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
-this program. If not, see <http://www.gnu.org/licenses/>. */
+this program. If not, see <https://www.gnu.org/licenses/>. */
#include "makeint.h"
+
#include "filedef.h"
-#include "commands.h"
#include "job.h"
+#include "commands.h"
#include "debug.h"
-#include <sys/time.h>
+#if HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
#include <netdb.h>
#include "customs.h"
return 0;
}
- /* For secure Customs, make is installed setuid root and
- Customs requires a privileged source port be used. */
- make_access ();
-
if (ISDB (DB_JOBS))
Rpc_Debug (1);
/* Ping the daemon once to see if it is there. */
inited = Customs_Ping () == RPC_SUCCESS ? 1 : -1;
- /* Return to normal user access. */
- user_access ();
-
if (starting_directory == 0)
/* main couldn't figure it out. */
inited = -1;
len = Customs_MakeWayBill (&permit, normalized_cwd, argv[0], argv,
envp, retport, waybill);
- /* Modify the waybill as if the remote child had done 'child_access ()'. */
+ /* Modify the waybill for the child's uid/gid. */
{
WayBill *wb = (WayBill *) waybill;
wb->ruid = wb->euid;
else if (pid == 0)
{
/* Child side. Run 'export' to handle the connection. */
- static char sock_buf[20], retsock_buf[20], id_buf[20];
+ static char sock_buf[INTSTR_LENGTH], retsock_buf[INTSTR_LENGTH];
+ static char id_buf[INTSTR_LENGTH];
static char *new_argv[6] =
{ EXPORT_COMMAND, "-id", sock_buf, retsock_buf, id_buf, 0 };