Diff

Differences From Artifact [6be3c5c3d6]:

To Artifact [c7c04cc8de]:


809
810
811
812
813
814
815
816

817
818
819
820
821
822
823
809
810
811
812
813
814
815

816
817
818
819
820
821
822
823







-
+







	    if (cfg->login_shell) {
		char *p = strrchr(shell, '/');
		shellname = snewn(2+strlen(shell), char);
		p = p ? p+1 : shell;
		sprintf(shellname, "-%s", p);
	    } else
		shellname = shell;
	    execl(getenv("SHELL"), shellname, NULL);
	    execl(getenv("SHELL"), shellname, (void *)NULL);
	}

	/*
	 * If we're here, exec has gone badly foom.
	 */
	perror("exec");
	_exit(127);