Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 284350 | Differences between
and this patch

Collapse All | Expand All

(-)scrotwm-0.9.6/scrotwm.c (-1 / +5 lines)
Lines 918-923 Link Here
918
{
918
{
919
	char			*ret;
919
	char			*ret;
920
	int			si;
920
	int			si;
921
	struct stat		sb;
921
922
922
	DNPRINTF(SWM_D_MISC, "spawn: %s\n", args->argv[0]);
923
	DNPRINTF(SWM_D_MISC, "spawn: %s\n", args->argv[0]);
923
	/*
924
	/*
Lines 928-934 Link Here
928
		if (fork() == 0) {
929
		if (fork() == 0) {
929
			if (display)
930
			if (display)
930
				close(ConnectionNumber(display));
931
				close(ConnectionNumber(display));
931
			setenv("LD_PRELOAD", SWM_LIB, 1);
932
			if (stat(SWM_LIB, &sb) != -1) {
933
				if (S_ISREG(sb.st_mode))
934
					setenv("LD_PRELOAD", SWM_LIB, 1);
935
			}
932
			if (asprintf(&ret, "%d", r->ws->idx)) {
936
			if (asprintf(&ret, "%d", r->ws->idx)) {
933
				setenv("_SWM_WS", ret, 1);
937
				setenv("_SWM_WS", ret, 1);
934
				free(ret);
938
				free(ret);

Return to bug 284350