Hi, I'd like to have a code review for the fix of CR 6583602:
http://cr.opensolaris.org/~dain/6583602/ <http://cr.opensolaris.org/%7Edain/6583602/> I wrote a small C test program and tested it with the following patterns: solana_ds.dainx[534] a.out "/foo" ORIG=/foo --> foo FIXED=foo solana_ds.dainx[535] a.out "/.foo" ORIG=/.foo --> foo FIXED=.foo solana_ds.dainx[536] a.out "/..foo" ORIG=/..foo --> ..foo FIXED=..foo solana_ds.dainx[537] a.out ".//./foo" ORIG=.//./foo --> foo FIXED=foo solana_ds.dainx[538] a.out ".//./.foo" ORIG=.//./.foo --> foo FIXED=.foo solana_ds.dainx[539] a.out ".//./..foo" ORIG=.//./..foo --> ..foo FIXED=..foo solana_ds.dainx[540] a.out "./foo" ORIG=./foo --> foo FIXED=foo solana_ds.dainx[541] a.out "./.foo" ORIG=./.foo --> foo FIXED=.foo solana_ds.dainx[542] a.out "./..foo" ORIG=./..foo --> ..foo FIXED=..foo solana_ds.dainx[543] a.out "../..foo" ORIG=../..foo --> ../..foo FIXED=../..foo Thanks, -Dai