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

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

Return to bug 139477