Fix BSD-only coding in port.c (passing a local variable to putenv). Also a quick but half-baked attempt to make trim_trailing_separator do the right thing with path consisting only of '/' --- still needs work for Windows I think.
Fix BSD-only coding in port.c (passing a local variable to putenv).
Also a quick but half-baked attempt to make trim_trailing_separator
do the right thing with path consisting only of '/' --- still needs
work for Windows I think.

randomtask1155/gpdb,edespino/gpdb,lisakowen/gpdb,zeroae/postgres-xl,royc1/gpdb,yazun/postgres-xl,rvs/gpdb,royc1/gpdb,postmind-net/postgres-xl,50wu/gpdb,Postgres-XL/Postgres-XL,ahachete/gpdb,atris/gpdb,arcivanov/postgres-xl,foyzur/gpdb,janebeckman/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,ahachete/gpdb,jmcatamney/gpdb,arcivanov/postgres-xl,50wu/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,zeroae/postgres-xl,CraigHarris/gpdb,lisakowen/gpdb,rubikloud/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,ovr/postgres-xl,50wu/gpdb,ashwinstar/gpdb,lisakowen/gpdb,randomtask1155/gpdb,CraigHarris/gpdb,janebeckman/gpdb,ahachete/gpdb,chrishajas/gpdb,tangp3/gpdb,oberstet/postgres-xl,Chibin/gpdb,foyzur/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,foyzur/gpdb,snaga/postgres-xl,Quikling/gpdb,ahachete/gpdb,xinzweb/gpdb,foyzur/gpdb,xuegang/gpdb,lintzc/gpdb,cjcjameson/gpdb,adam8157/gpdb,Chibin/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,lisakowen/gpdb,zaksoup/gpdb,rubikloud/gpdb,yuanzhao/gpdb,atris/gpdb,Chibin/gpdb,greenplum-db/gpdb,xinzweb/gpdb,atris/gpdb,xinzweb/gpdb,arcivanov/postgres-xl,xinzweb/gpdb,Postgres-XL/Postgres-XL,rvs/gpdb,Postgres-XL/Postgres-XL,Quikling/gpdb,janebeckman/gpdb,edespino/gpdb,randomtask1155/gpdb,xuegang/gpdb,kmjungersen/PostgresXL,royc1/gpdb,royc1/gpdb,kaknikhil/gpdb,lintzc/gpdb,edespino/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,randomtask1155/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,rvs/gpdb,adam8157/gpdb,chrishajas/gpdb,yazun/postgres-xl,ahachete/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,rubikloud/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb,snaga/postgres-xl,0x0FFF/gpdb,greenplum-db/gpdb,snaga/postgres-xl,jmcatamney/gpdb,janebeckman/gpdb,ahachete/gpdb,CraigHarris/gpdb,ovr/postgres-xl,ahachete/gpdb,janebeckman/gpdb,tangp3/gpdb,50wu/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,atris/gpdb,lisakowen/gpdb,chrishajas/gpdb,Quikling/gpdb,cjcjameson/gpdb,tangp3/gpdb,janebeckman/gpdb,ashwinstar/gpdb,postmind-net/postgres-xl,tangp3/gpdb,greenplum-db/gpdb,postmind-net/postgres-xl,Quikling/gpdb,zaksoup/gpdb,cjcjameson/gpdb,janebeckman/gpdb,0x0FFF/gpdb,tpostgres-projects/tPostgres,Postgres-XL/Postgres-XL,chrishajas/gpdb,oberstet/postgres-xl,randomtask1155/gpdb,foyzur/gpdb,ashwinstar/gpdb,Quikling/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,janebeckman/gpdb,lisakowen/gpdb,atris/gpdb,Chibin/gpdb,atris/gpdb,jmcatamney/gpdb,chrishajas/gpdb,kaknikhil/gpdb,ahachete/gpdb,zaksoup/gpdb,pavanvd/postgres-xl,Quikling/gpdb,xuegang/gpdb,royc1/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,ovr/postgres-xl,lpetrov-pivotal/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,edespino/gpdb,yuanzhao/gpdb,rvs/gpdb,royc1/gpdb,greenplum-db/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,Quikling/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,lintzc/gpdb,techdragon/Postgres-XL,lintzc/gpdb,xinzweb/gpdb,snaga/postgres-xl,Quikling/gpdb,rubikloud/gpdb,jmcatamney/gpdb,royc1/gpdb,edespino/gpdb,jmcatamney/gpdb,lpetrov-pivotal/gpdb,zaksoup/gpdb,rubikloud/gpdb,greenplum-db/gpdb,Quikling/gpdb,yazun/postgres-xl,kmjungersen/PostgresXL,CraigHarris/gpdb,kaknikhil/gpdb,Quikling/gpdb,xuegang/gpdb,techdragon/Postgres-XL,zeroae/postgres-xl,kmjungersen/PostgresXL,foyzur/gpdb,zaksoup/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,yuanzhao/gpdb,techdragon/Postgres-XL,rubikloud/gpdb,zaksoup/gpdb,yuanzhao/gpdb,zeroae/postgres-xl,edespino/gpdb,yazun/postgres-xl,xuegang/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,xinzweb/gpdb,0x0FFF/gpdb,pavanvd/postgres-xl,50wu/gpdb,zaksoup/gpdb,rubikloud/gpdb,edespino/gpdb,arcivanov/postgres-xl,50wu/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,tangp3/gpdb,50wu/gpdb,techdragon/Postgres-XL,rvs/gpdb,snaga/postgres-xl,rvs/gpdb,oberstet/postgres-xl,atris/gpdb,0x0FFF/gpdb,lintzc/gpdb,ovr/postgres-xl,50wu/gpdb,tangp3/gpdb,lintzc/gpdb,chrishajas/gpdb,postmind-net/postgres-xl,zeroae/postgres-xl,arcivanov/postgres-xl,chrishajas/gpdb,adam8157/gpdb,Chibin/gpdb,postmind-net/postgres-xl,rvs/gpdb,pavanvd/postgres-xl,CraigHarris/gpdb,yazun/postgres-xl,0x0FFF/gpdb,randomtask1155/gpdb,Chibin/gpdb,foyzur/gpdb,xuegang/gpdb,xuegang/gpdb,lintzc/gpdb,adam8157/gpdb,lpetrov-pivotal/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,foyzur/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,adam8157/gpdb,adam8157/gpdb,ovr/postgres-xl,kaknikhil/gpdb,edespino/gpdb,randomtask1155/gpdb,xinzweb/gpdb,ashwinstar/gpdb,rvs/gpdb,kaknikhil/gpdb,edespino/gpdb,lintzc/gpdb,Chibin/gpdb,cjcjameson/gpdb,rvs/gpdb,kaknikhil/gpdb,Chibin/gpdb,zaksoup/gpdb,chrishajas/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,xinzweb/gpdb,kmjungersen/PostgresXL,xuegang/gpdb,rubikloud/gpdb,rvs/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,CraigHarris/gpdb,lisakowen/gpdb,tangp3/gpdb,royc1/gpdb,pavanvd/postgres-xl,yuanzhao/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,xuegang/gpdb