From sacadmin Mon May 17 09:40:04 2010
Received: from stard.SFBay.Sun.COM (stard.SFBay.Sun.COM [129.146.228.20])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4HGe4RN004212;
	Mon, 17 May 2010 09:40:04 -0700 (PDT)
Received: from stard.SFBay.Sun.COM (localhost [127.0.0.1])
	by stard.SFBay.Sun.COM (8.14.4+Sun/8.14.4) with ESMTP id o4HGgOws014762;
	Mon, 17 May 2010 09:42:24 -0700 (PDT)
Received: (from richb@localhost)
	by stard.SFBay.Sun.COM (8.14.4+Sun/8.14.4/Submit) id o4HGgO0B014760;
	Mon, 17 May 2010 09:42:24 -0700 (PDT)
Date: Mon, 17 May 2010 09:42:24 -0700 (PDT)
From: Rich Burridge <richb@stard.SFBay.Sun.COM>
Message-Id: <201005171642.o4HGgO0B014760@stard.SFBay.Sun.COM>
To: PSARC-record@sac.sfbay.sun.com
Subject: TMPDIR support for Solaris tar [PSARC/2010/174 Self Review]
Status: RO
Content-Length: 602


Template Version: @(#)sac_nextcase 1.70 03/30/10 SMI
This information is Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
1. Introduction
    1.1. Project/Component Working Name:
	 TMPDIR support for Solaris tar
    1.2. Name of Document Author/Supplier:
	 Author:  Rich Burridge
    1.3  Date of This Document:
	17 May, 2010
4. Technical Description
    See the case directory for more detail

6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		ON
    6.5. ARC review type: Automatic
    6.6. ARC Exposure: open


From rich.burridge@oracle.com Mon May 17 09:42:48 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4HGgmWq004253
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 17 May 2010 09:42:48 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4HGgltM002914
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 17 May 2010 10:42:48 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2K00C0NP3BIN00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 17 May 2010 09:42:47 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2K00GTUP39CAD0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 17 May 2010 09:42:45 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4HGgjRe023646	for
 <PSARC-ext@Sun.COM>; Mon, 17 May 2010 16:42:45 +0000 (GMT)
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4H9G2aV024738	for <PSARC-ext@sun.com>; Mon,
 17 May 2010 16:42:44 +0000 (GMT)
Received: from abhmt013.oracle.com by acsmt354.oracle.com	with ESMTP id
 247407121274114563; Mon, 17 May 2010 09:42:43 -0700
Received: from [129.146.228.20] (/129.146.228.20)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Mon,
 17 May 2010 09:42:42 -0700
Date: Mon, 17 May 2010 09:45:01 -0700
From: Rich Burridge <rich.burridge@oracle.com>
Subject: TMPDIR support for Solaris tar [PSARC/2010/174 Self Review]
To: PSARC-ext@sun.com
Message-id: <4BF1728D.3000904@oracle.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt354.oracle.com [141.146.40.154]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A0B020B.4BF17204.01D1:SCFMA4539814,ss=1,fgs=0
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100412
 Thunderbird/3.0.3
Status: RO
Content-Length: 1827

I'm submitting this proposal on behalf of myself. It's submitted as
closed-approved-automatic because it is a straight forward simple
enhancement to an existing mechanism. A patch release binding is
requested.

-- 

1. Introduction

     1.1. Project/Component Working Name:
          TMPDIR support for Solaris tar

     1.2. Name of Document Author/Supplier:
          Rich.Burridge@oracle.com

4. Technical Description:

    Summary:

         This proposal is to modify Solaris tar to honor the environment
         variable TMPDIR, and to update the man page accordingly.

    Problem:

         Currently, tar is hard-coded to create temporary files in
         /tmp when the "u" operation is performed.

         Because /tmp is used as the temporary file system for many
         other commands and operations and as these files can be
         potentially large, RFE 6719399 is requesting that some method
         of choosing a directory other than /tmp be provided.

    Proposed solution:

         Many utilities and subsystems (vi, pax, sort, cpio, ...)
         already use the environment variable TMPDIR to select where
         their temporary files are placed, using /tmp as a default
         value if that environment variable is not defined. This proposal
         is to make tar do the same.

         If TMPDIR is invalid or points to a read-only directory, then
         tar will default to using /tmp for its temporary directory.

    Doc impact:

         The tar manual pages will need to be updated to mention that
         tar now supports TMPDIR, in the ENVIRONMENT VARIABLES section.
         Bug 6952051 covers this. The proposed text addition is:


         TMPDIR    tar creates its temporary file in /tmp by default.
                   Otherwise, it uses the directory specified by TMPDIR.


From garrett.damore@oracle.com Mon May 17 09:51:13 2010
Received: from sunmail6brm.central.sun.com (sunmail6brm.Central.Sun.COM [129.147.4.169])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4HGpCR9004327
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 17 May 2010 09:51:13 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail6brm.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4HGp7ij013388
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 17 May 2010 11:51:12 -0500 (CDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2K00C0XPHCPA00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 17 May 2010 09:51:12 -0700 (PDT)
Received: from sca-ea-mail-3.sun.com ([192.18.43.21])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2K006RHPHBAJ90@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 17 May 2010 09:51:11 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117])
	by sca-ea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4HGpAoB010760	for
 <PSARC-ext@Sun.COM>; Mon, 17 May 2010 16:51:11 +0000 (GMT)
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153])
	by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4HCMMJn024845	for <PSARC-ext@sun.com>; Mon,
 17 May 2010 16:51:07 +0000 (GMT)
Received: from abhmt005.oracle.com by acsmt354.oracle.com	with ESMTP id
 271354321274114958; Mon, 17 May 2010 09:49:18 -0700
Received: from [129.153.2.8] (/129.153.2.8)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Mon,
 17 May 2010 09:49:18 -0700
Date: Mon, 17 May 2010 09:49:17 -0700
From: "Garrett D'Amore" <garrett.damore@oracle.com>
Subject: Re: TMPDIR support for Solaris tar [PSARC/2010/174 Self Review]
In-reply-to: <4BF1728D.3000904@oracle.com>
To: Rich Burridge <rich.burridge@oracle.com>
Cc: PSARC-ext@sun.com
Message-id: <4BF1738D.1050602@oracle.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090208.4BF173FE.0086:SCFMA4539814,ss=1,fgs=0
References: <4BF1728D.3000904@oracle.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090910)
Status: RO
Content-Length: 321

On 05/17/10 09:45, Rich Burridge wrote:
> I'm submitting this proposal on behalf of myself. It's submitted as
> closed-approved-automatic because it is a straight forward simple
> enhancement to an existing mechanism. A patch release binding is
> requested.
>

+1 on the case, and on it being self-review.

    - Garrett

From ceri@submonkey.net Mon May 17 12:42:06 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4HJg6p3008115
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 17 May 2010 12:42:06 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4HJg3Gn031735
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 17 May 2010 13:42:05 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2K00A0RXE5UX00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 17 May 2010 12:42:05 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2K000RNXE3WUD0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 17 May 2010 12:42:03 -0700 (PDT)
Received: from relay15i.sun.com
 (ip125.net129179-4.block1.us.syntegra.com [129.179.4.125])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4HJbrmk029194	for
 <PSARC-ext@sun.com>; Mon, 17 May 2010 19:42:03 +0000 (GMT)
Received: from mmp11es.mmp.us.syntegra.com ([160.41.208.11] [160.41.208.11])
 by relay15i.sun.com with ESMTP id BT-MMP-713151 for PSARC-ext@sun.com; Mon,
 17 May 2010 19:42:02 +0000 (Z)
Received: from relay13i.sun.com (relay13i.sun.com [129.179.4.123])
 by mmp11es.mmp.us.syntegra.com with ESMTP id BT-MMP-213927339 for
 PSARC-ext@sun.com; Mon, 17 May 2010 19:42:02 +0000 (Z)
Received: from scuttle.submonkey.net ([208.111.43.184] [208.111.43.184])
 by relay1i.sun.com with ESMTP id BT-MMP-6656053 for PSARC-ext@sun.com; Mon,
 17 May 2010 19:42:02 +0000 (Z)
Received: from cpc6-cdif11-2-0-cust58.know.cable.virginmedia.com
 ([62.255.146.59] helo=shrike.submonkey.net)	by scuttle.submonkey.net with
 esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256)	(Exim 4.69)
	(envelope-from <ceri@submonkey.net>)	id 1OE6CN-0003KY-EJ; Mon,
 17 May 2010 19:41:59 +0000
Received: from ceri by shrike.submonkey.net with local (Exim 4.69 (FreeBSD))
	(envelope-from <ceri@submonkey.net>)	id 1OE6CL-0003pe-4i; Mon,
 17 May 2010 20:41:57 +0100
Date: Mon, 17 May 2010 20:41:57 +0100
From: Ceri Davies <ceri@submonkey.net>
Subject: Re: TMPDIR support for Solaris tar [PSARC/2010/174 Self Review]
In-reply-to: <4BF1728D.3000904@oracle.com>
Sender: Ceri Davies <ceri@submonkey.net>
To: Rich Burridge <rich.burridge@oracle.com>
Cc: PSARC-ext@sun.com
Message-id: <20100517194156.GB52629@submonkey.net>
MIME-version: 1.0
Content-type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1"
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-PGP: finger ceri@FreeBSD.org
X-Antispam: No, score=0.0/5.0, scanned in 0.177sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4BF1728D.3000904@oracle.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Status: RO
Content-Length: 1069


--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 17, 2010 at 09:45:01AM -0700, Rich Burridge wrote:

>          TMPDIR    tar creates its temporary file in /tmp by default.
>                    Otherwise, it uses the directory specified by TMPDIR.

I think that's a little backwards and would work better as:

 tar creates its temporary file in the directory specified by TMPDIR.
 If TMPDIR is not specified, or the directory specified therein does not
 exist or is not writable, it uses the directory /tmp.

No objections to the case though.

Ceri
--=20
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere

--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iD8DBQFL8ZwEocfcwTS3JF8RAkEdAJwOXwvas/dcIt1/YMqRB1EG/a/7ogCgykgI
rerPClx2RkGgjaC+VpWLyFI=
=pMsb
-----END PGP SIGNATURE-----

--n8g4imXOkfNTN/H1--

From rich.burridge@oracle.com Mon May 17 13:25:30 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4HKPTr5009109
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 17 May 2010 13:25:30 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4HKPOVZ054104
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 17 May 2010 14:25:29 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2K00L03ZEGD400@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 17 May 2010 13:25:28 -0700 (PDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2K005EOZEFBB90@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 17 May 2010 13:25:28 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4HKPRcH028120	for
 <PSARC-ext@Sun.COM>; Mon, 17 May 2010 20:25:27 +0000 (GMT)
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4HIeM0H003932; Mon, 17 May 2010 20:25:22 +0000 (GMT)
Received: from abhmt020.oracle.com by acsmt355.oracle.com	with ESMTP id
 248069481274127900; Mon, 17 May 2010 13:25:00 -0700
Received: from [129.146.228.20] (/129.146.228.20)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Mon,
 17 May 2010 13:24:59 -0700
Date: Mon, 17 May 2010 13:27:19 -0700
From: Rich Burridge <rich.burridge@oracle.com>
Subject: Re: TMPDIR support for Solaris tar [PSARC/2010/174 Self Review]
In-reply-to: <20100517194156.GB52629@submonkey.net>
To: Ceri Davies <ceri@submonkey.net>
Cc: PSARC-ext@sun.com
Message-id: <4BF1A6A7.7060404@oracle.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090208.4BF1A633.008A:SCFMA4539814,ss=1,fgs=0
References: <4BF1728D.3000904@oracle.com> <20100517194156.GB52629@submonkey.net>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100412
 Thunderbird/3.0.3
Status: RO
Content-Length: 1307

On 05/17/10 12:41, Ceri Davies wrote:
> On Mon, May 17, 2010 at 09:45:01AM -0700, Rich Burridge wrote:
>
>    
>>           TMPDIR    tar creates its temporary file in /tmp by default.
>>                     Otherwise, it uses the directory specified by TMPDIR.
>>      
> I think that's a little backwards and would work better as:
>
>   tar creates its temporary file in the directory specified by TMPDIR.
>   If TMPDIR is not specified, or the directory specified therein does not
>   exist or is not writable, it uses the directory /tmp.
>    

Agreed. You're the second person to mention this.
I just took it from the cpio man page output:

$ man cpio
...

ENVIRONMENT VARIABLES
      See environ(5) for descriptions of the following environment
      variables  that  affect  the  execution of cpio: LC_COLLATE,
      LC_CTYPE, LC_MESSAGES, LC_TIME, TZ, and NLSPATH.

SunOS 5.11           Last change: 3 Aug 2009                   10

User Commands                                             cpio(1)

      TMPDIR    cpio creates its temporary  file  in  /var/tmp  by
                default.  Otherwise,  it uses the directory speci-
                fied by TMPDIR.
...

I'll add a comment to the Bugster CR for the man page change
with your suggested wording, and then let the doc writer go wild.


