View | Details | Raw Unified | Return to bug 276507 | Differences between
and this patch

Collapse All | Expand All

(-)b/makefile (-1 / +1 lines)
Lines 14-20 ifeq ($(OS), Linux) Link Here
14
endif
14
endif
15
ifeq ($(OS), FreeBSD)
15
ifeq ($(OS), FreeBSD)
16
	FLAGS+= -D_DEFAULT_SOURCE ${CPPFLAGS} ${CFLAGS}
16
	FLAGS+= -D_DEFAULT_SOURCE ${CPPFLAGS} ${CFLAGS}
17
	LINK+=  ${LIBS}
17
	LINK+=  ${LIBS} -lutil
18
endif
18
endif
19
19
20
BIND = bin
20
BIND = bin
(-)b/src/login.c (-1 / +15 lines)
Lines 22-27 Link Here
22
#include <utmpx.h>
22
#include <utmpx.h>
23
#include <xcb/xcb.h>
23
#include <xcb/xcb.h>
24
24
25
#include <sys/param.h>
26
#include <sys/types.h>
27
#include <login_cap.h>
28
25
int get_free_display()
29
int get_free_display()
26
{
30
{
27
	char xlock[1024];
31
	char xlock[1024];
Lines 603-608 void auth( Link Here
603
			exit(EXIT_FAILURE);
607
			exit(EXIT_FAILURE);
604
		}
608
		}
605
609
610
		ok = setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL);
611
612
		if (ok != 0)
613
		{
614
			dgn_throw(DGN_USER_UID);
615
			exit(EXIT_FAILURE);
616
		}
617
618
		/* This is done by setusercontext() on FreeBSD. */
619
#if 0
606
		ok = setgid(pwd->pw_gid);
620
		ok = setgid(pwd->pw_gid);
607
621
608
		if (ok != 0)
622
		if (ok != 0)
Lines 618-623 void auth( Link Here
618
			dgn_throw(DGN_USER_UID);
632
			dgn_throw(DGN_USER_UID);
619
			exit(EXIT_FAILURE);
633
			exit(EXIT_FAILURE);
620
		}
634
		}
635
#endif
621
636
622
		// get a display
637
		// get a display
623
		char vt[5];
638
		char vt[5];
624
- 

Return to bug 276507