Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 124487
Collapse All | Expand All

(-)chkshsgr.c.orig (-1 / +2 lines)
Lines 1-10 Link Here
1
/* Public domain. */
1
/* Public domain. */
2
2
3
#include <sys/types.h>
3
#include <unistd.h>
4
#include <unistd.h>
4
5
5
int main()
6
int main()
6
{
7
{
7
  short x[4];
8
  gid_t x[4];
8
9
9
  x[0] = x[1] = 0;
10
  x[0] = x[1] = 0;
10
  if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
11
  if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
(-)multilog.c.orig (-1 / +1 lines)
Lines 197-203 Link Here
197
  args[1] = "-c";
197
  args[1] = "-c";
198
  args[2] = d->processor;
198
  args[2] = d->processor;
199
  args[3] = 0;
199
  args[3] = 0;
200
  execve("/bin/sh",args,environ);
200
  execve("/bin/sh",(char*const*)args,environ);
201
}
201
}
202
202
203
void fullcurrent(struct cyclog *d)
203
void fullcurrent(struct cyclog *d)
(-)supervise.c.orig (-1 / +1 lines)
Lines 99-105 Link Here
99
    case 0:
99
    case 0:
100
      sig_uncatch(sig_child);
100
      sig_uncatch(sig_child);
101
      sig_unblock(sig_child);
101
      sig_unblock(sig_child);
102
      execve(*run,run,environ);
102
      execve(*run,(char*const*)run,environ);
103
      strerr_die4sys(111,FATAL,"unable to start ",dir,"/run: ");
103
      strerr_die4sys(111,FATAL,"unable to start ",dir,"/run: ");
104
  }
104
  }
105
  flagpaused = 0;
105
  flagpaused = 0;
(-)svscan.c.orig (-2 / +2 lines)
Lines 101-107 Link Here
101
        args[0] = "supervise";
101
        args[0] = "supervise";
102
        args[1] = fn;
102
        args[1] = fn;
103
        args[2] = 0;
103
        args[2] = 0;
104
	pathexec_run(*args,args,environ);
104
	pathexec_run(*args,args,(const char*const*)environ);
105
        strerr_die4sys(111,WARNING,"unable to start supervise ",fn,": ");
105
        strerr_die4sys(111,WARNING,"unable to start supervise ",fn,": ");
106
      default:
106
      default:
107
	x[i].pid = child;
107
	x[i].pid = child;
Lines 120-126 Link Here
120
        args[0] = "supervise";
120
        args[0] = "supervise";
121
        args[1] = "log";
121
        args[1] = "log";
122
        args[2] = 0;
122
        args[2] = 0;
123
	pathexec_run(*args,args,environ);
123
	pathexec_run(*args,args,(const char*const*)environ);
124
        strerr_die4sys(111,WARNING,"unable to start supervise ",fn,"/log: ");
124
        strerr_die4sys(111,WARNING,"unable to start supervise ",fn,"/log: ");
125
      default:
125
      default:
126
	x[i].pidlog = child;
126
	x[i].pidlog = child;

Return to bug 124487