components/ksh93/patches/065-CR7110983.patch
author John Beck <John.Beck@Oracle.COM>
Thu, 27 Aug 2015 11:04:29 -0700
changeset 4818 058cb786874f
parent 4305 90493abe0c5c
child 5129 5431772f7235
permissions -rw-r--r--
21699326 Userland package history simplification (fix x86-only oversight)

diff -r bb8978c251cb -r 6fbea5c30b60 usr/src/cmd/ast/lib/libshell/common/sh/name.c
--- a/src/cmd/ksh93/sh/name.c	Sun Mar 25 23:19:46 2012 -0700
+++ b/src/cmd/ksh93/sh/name.c	Mon Mar 26 05:09:19 2012 -0700
@@ -22,6 +22,9 @@
  * AT&T Labs
  *
  */
+/*
+ * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
+ */
 
 #define putenv	___putenv
 
@@ -1832,7 +1835,10 @@
 			else
 #endif
 			if(size==0 && nv_isattr(np,NV_HOST)!=NV_HOST &&nv_isattr(np,NV_LJUST|NV_RJUST|NV_ZFILL))
+			{
 				nv_setsize(np,size=dot);
+				tofree = up->cp;
+			}
 			else if(size > dot)
 				dot = size;
 			else if(nv_isattr(np,NV_LJUST|NV_RJUST)==NV_LJUST && dot>size)