View | Details | Raw Unified
Collapse All | Expand All

(-) ppp-2.4.3.orig/pppd/plugins/winbind.c (-2 / +4 lines)
 Lines 300-307    Link Here 
		close(child_in[1]);
		close(child_in[1]);
		/* run winbind as the user that invoked pppd */
		/* run winbind as the user that invoked pppd */
		setgid(getgid());
		if (setgid(getgid()) < 0 || setuid(getuid()) < 0) {
		setuid(getuid());
			perror("pppd/winbind: failed to drop privileges");
			exit(1);
		}
		execl("/bin/sh", "sh", "-c", ntlm_auth, NULL);  
		execl("/bin/sh", "sh", "-c", ntlm_auth, NULL);  
		perror("pppd/winbind: could not exec /bin/sh");
		perror("pppd/winbind: could not exec /bin/sh");
		exit(1);
		exit(1);