components/ksh93/patches/CR7175995.patch
changeset 4196 d697072a92f5
parent 4195 d88c5d15a4af
child 4197 67d7270f6817
equal deleted inserted replaced
4195:d88c5d15a4af 4196:d697072a92f5
     1 diff -Naur INIT.2011-02-08.orig/src/cmd/ksh93/sh/init.c INIT.2011-02-08/src/cmd/ksh93/sh/init.c
       
     2 --- INIT.2011-02-08.orig/src/cmd/ksh93/sh/init.c	2012-06-25 01:05:32.997978071 -0700
       
     3 +++ INIT.2011-02-08/src/cmd/ksh93/sh/init.c	2012-06-25 01:19:10.000000000 -0700
       
     4 @@ -1181,7 +1181,7 @@
       
     5  	Shell_t	*shp;
       
     6  	register int n;
       
     7  	int type;
       
     8 -	static char *login_files[3];
       
     9 +	static char *login_files[2];
       
    10  	memfatal();
       
    11  	n = strlen(e_version);
       
    12  	if(e_version[n-1]=='$' && e_version[n-2]==' ')
       
    13 @@ -1468,7 +1468,6 @@
       
    14          shp->topscope = (Shscope_t*)shp->st.self;
       
    15  	sh_offstate(SH_INIT);
       
    16  	login_files[0] = (char*)e_profile;
       
    17 -	login_files[1] = ".profile";
       
    18  	shp->gd->login_files = login_files;
       
    19  	shp->bltindata.version = SH_VERSION;
       
    20  	shp->bltindata.shp = shp;