From sacadmin Mon Jun 15 09:34:00 2009
Received: from stard.sfbay.sun.com (stard.SFBay.Sun.COM [129.146.225.8])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FGY0Ng025513;
	Mon, 15 Jun 2009 09:34:00 -0700 (PDT)
Received: from stard.sfbay.sun.com (localhost [127.0.0.1])
	by stard.sfbay.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n5FGXWs7029093;
	Mon, 15 Jun 2009 09:33:32 -0700 (PDT)
Received: (from richb@localhost)
	by stard.sfbay.sun.com (8.14.3+Sun/8.14.3/Submit) id n5FGXWXb029088;
	Mon, 15 Jun 2009 09:33:32 -0700 (PDT)
Date: Mon, 15 Jun 2009 09:33:32 -0700 (PDT)
From: Rich Burridge <richb@stard.sfbay.sun.com>
Message-Id: <200906151633.n5FGXWXb029088@stard.sfbay.sun.com>
To: PSARC-record@sac.sfbay.sun.com
Subject: GNU coreutils 7.4 [PSARC/2009/355 FastTrack]
Status: RO
Content-Length: 556


Template Version: @(#)sac_nextcase 1.68 02/23/09 SMI
This information is Copyright 2009 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
	 GNU coreutils 7.4
    1.2. Name of Document Author/Supplier:
	 Author:  John Sonnenschein
    1.3  Date of This Document:
	15 June, 2009
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:
		SFW
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open


From Rich.Burridge@Sun.COM Mon Jun 15 13:40:57 2009
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 n5FKev7a002252
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 13:40:57 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5FKevNt057318
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 15 Jun 2009 14:40:57 -0600 (MDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLA0091PS489U00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 14:40:56 -0600 (MDT)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA001HJS450N50@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 14:40:53 -0600 (MDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5FKerCn002925	for
 <PSARC-ext@sun.com>; Mon, 15 Jun 2009 13:40:53 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 id <0KLA00K00RXJM600@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 13:40:53 -0700 (PDT)
Received: from [129.146.225.8] ([unknown] [129.146.225.8])
 by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 with ESMTPSA id <0KLA00FWNS41L7G0@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 13:40:52 -0700 (PDT)
Date: Mon, 15 Jun 2009 13:40:21 -0700
From: Rich Burridge <Rich.Burridge@Sun.COM>
Subject: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack timeout
 06/22/2009]
Sender: Rich.Burridge@Sun.COM
To: PSARC-ext@Sun.COM
Cc: John Sonnenschein <John.Sonnenschein@Sun.COM>
Message-id: <4A36B1B5.7050408@sun.com>
MIME-version: 1.0
Content-type: multipart/mixed; boundary="Boundary_(ID_0XV5OhGW9RddKmszWZ9IJw)"
X-PMX-Version: 5.4.1.325704
User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
Status: RO
Content-Length: 3933

This is a multi-part message in MIME format.

--Boundary_(ID_0XV5OhGW9RddKmszWZ9IJw)
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT

I am sponsoring this fast-track for John Sonnenschein.

This is OSR ID#11996

Timeout is currently set for June 22nd 2009.



--Boundary_(ID_0XV5OhGW9RddKmszWZ9IJw)
Content-type: text/plain; name=proposal.txt
Content-transfer-encoding: 7BIT
Content-disposition: inline; filename=proposal.txt


1. Introduction
    1.1. Project/Component Working Name:
         GNU coreutils 7.4

    1.2. Name of Document Author/Supplier:
         Author:  John.Sonnenschein@Sun.COM

    1.3  Date of This Document:
         15 June, 2009


4. Technical Description

   Update GNU coreutils to 7.4


1.  Summary

        This fasttrack is a direct follow-on to:

            PSARC/2007/048 Include GNU coreutils 6.7

        It increments the version of GNU coreutils in OpenSolaris to 7.4.

        Patch release binding is requested.


2.  Discussion

        GNU coreutils--the combination of GNU fileutils, GNU shellutils, and
        GUN textutils--provide implementations of many common Unix utilities
        as well as various enhancements and additional related utilities.

        The version proposed here is the latest stable version available
        and will replace version 6.7, which is currently in OpenSolaris.


3.  Interfaces

        PSARC/2007/048 sections 2.1 - 3.2 describe the interface details
        for the GNU coreutils 6.7 commands.  The changes between 6.7 and 
        7.4, are described in the Changes_from_6.7.txt file in the case 
        materials directory.  Each command retains the same stability level.

        Between 6.7 and 7.4, the following new commands were introduced:

        /usr/gnu/bin/
                chcon
                mktemp
                runcon
                timeout
                truncated
                       Location                     Uncommitted
                       Invocation                   Uncommitted
                       Human-readable output        Not an Interface

       The following commands are no longer installed by default:

       /usr/gnu/bin
                hostname

       See the various man pages in the case materials directory for 
       more details.


4. Reference Documents (located in case materials directory)

       Changes_from_6.7.txt - (from project NEWS file).

       <command>.1 manual pages for the following commands:

       base64      basename    cat         chcon       chgrp
       chmod       chown       chroot      cksum       comm
       cp          csplit      cut         date        dd
       df          dir         dircolors   dirname     du
       echo        env         expand      expr        factor
       false       fmt         fold        groups      head
       hostid      id          install     join        kill
       link        ln          logname     ls          md5sum
       mkdir       mkfifo      mknod       mktemp      mv
       nice        nl          nohup       od          paste
       pathchk     pinky       pr          printenv    printf
       ptx         pwd         readlink    rm          rmdir
       runcon      seq         sha1sum     sha224sum   sha256sum
       sha384sum   sha512sum   shred       shuf        sleep
       sort        split       stat        stty        sum
       sync        tac         tail        tee         test
       timeout     touch       tr          true        truncate
       tsort       tty         uname       unexpand    uniq
       unlink      uptime      users       vdir   wc
       who         whoami      yes


6. Resources and Schedule
    6.4. Steering Committee requested information
           6.4.1. Consolidation C-team Name:
                SFW

    6.5. ARC review type: FastTrack

    6.6. ARC Exposure: open

--Boundary_(ID_0XV5OhGW9RddKmszWZ9IJw)--

From Nicolas.Williams@sun.com Mon Jun 15 14:29:29 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FLTSgP004671
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 14:29:29 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5FLTAYN005024;
	Mon, 15 Jun 2009 22:29:25 +0100 (BST)
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 <0KLA00209UD0BP00@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 15 Jun 2009 14:29:24 -0700 (PDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA00MRAUD03650@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 15 Jun 2009 14:29:24 -0700 (PDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n5FLQrnK001808;
 Mon, 15 Jun 2009 16:26:53 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n5FLQrNe001807; Mon,
 15 Jun 2009 16:26:53 -0500 (CDT)
Date: Mon, 15 Jun 2009 16:26:53 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <4A36B1B5.7050408@sun.com>
To: Rich Burridge <rich.burridge@sun.com>
Cc: PSARC-ext@sun.com, John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <20090615212653.GU1308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 1243

On Mon, Jun 15, 2009 at 01:40:21PM -0700, Rich Burridge wrote:
>         Between 6.7 and 7.4, the following new commands were introduced:
> 
>         /usr/gnu/bin/
>                 chcon
>                 mktemp
>                 runcon
>                 timeout
>                 truncated
>                        Location                     Uncommitted
>                        Invocation                   Uncommitted
>                        Human-readable output        Not an Interface

chcon and runcon are specific to SELinux.  What would they do on
Solaris?

/usr/bin already has an mktemp.  How does it differ from the GNU
version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
GNU, but "unsafe operation" in Solaris).

There's no 'timeout' in /usr/bin, so why not put the timeout command in
/usr/bin?

Also, I think you meant 'truncate', not 'truncated'.  Neither exists in
/usr/bin, so they should go in there too.

>        <command>.1 manual pages for the following commands:

It'd be nice if you could put pre-formatted manpages (piped through col
-b) in there.  The method that most users will have for accessing the
case directory is the web interface, and reading raw nroff through it is
a pain.

Nico
-- 

From Alan.Coopersmith@sun.com Mon Jun 15 14:36:16 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FLaG41005167
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 14:36:16 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5FLaF9f015044
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 15 Jun 2009 14:36:15 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLA00D1JUOFTC00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:36:15 -0600 (MDT)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA001N1UOC0B80@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 15:36:13 -0600 (MDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5FLaCKI008963	for
 <PSARC-ext@sun.com>; Mon, 15 Jun 2009 14:36:12 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 id <0KLA00J00UIVL100@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 14:36:12 -0700 (PDT)
Received: from [10.6.102.27] ([unknown] [10.6.102.27])
 by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit
 (built Apr 16 2009)) with ESMTPSA id <0KLA00GBGUOBO520@fe-sfbay-10.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 14:36:11 -0700 (PDT)
Date: Mon, 15 Jun 2009 14:36:11 -0700
From: Alan Coopersmith <Alan.Coopersmith@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <4A36B1B5.7050408@sun.com>
Sender: Alan.Coopersmith@sun.com
To: Rich Burridge <Rich.Burridge@sun.com>
Cc: PSARC-ext@sun.com, John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <4A36BECB.7020109@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Enigmail-Version: 0.95.1
References: <4A36B1B5.7050408@sun.com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
Status: RO
Content-Length: 380

Rich Burridge wrote:
> I am sponsoring this fast-track for John Sonnenschein.

This case doesn't seem to include fixing the issues John filed bugs for
earlier, such as lack of ZFS acl support in commands like GNU ls & chmod.

Will that be handled in a later case?

-- 
	-Alan Coopersmith-           alan.coopersmith@sun.com
	 Sun Microsystems, Inc. - X Window System Engineering


From roland.mainz@nrubsig.org Mon Jun 15 14:43:05 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FLh4lw005221
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 14:43:04 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5FLgwAx012126;
	Mon, 15 Jun 2009 22:42:59 +0100 (BST)
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 <0KLA00407UZMKV00@nwk-avmta-2.sfbay.sun.com>; Mon,
 15 Jun 2009 14:42:58 -0700 (PDT)
Received: from sca-ea-mail-4.sun.com ([192.18.43.22])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA00HQUUZLHP80@nwk-avmta-2.sfbay.sun.com>; Mon,
 15 Jun 2009 14:42:57 -0700 (PDT)
Received: from relay41i.sun.com ([192.5.209.70])
	by sca-ea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5FLeBks009129;
 Mon, 15 Jun 2009 21:42:57 +0000 (GMT)
Received: from mmp43es.mmp.us.syntegra.com ([160.41.221.12] [160.41.221.12])
 by relay41i.sun.com with ESMTP id BT-MMP-6763672; Mon,
 15 Jun 2009 21:42:56 +0000 (Z)
Received: from relay45i.sun.com (relay45i.sun.com [192.5.209.94])
 by mmp43es.mmp.us.syntegra.com with ESMTP id BT-MMP-34185233; Mon,
 15 Jun 2009 21:42:55 +0000 (Z)
Received: from mail-in-13.arcor-online.net ([151.189.21.53] [151.189.21.53])
 by relay4i.sun.com with ESMTP id BT-MMP-4470228; Mon,
 15 Jun 2009 21:42:55 +0000 (Z)
Received: from mail-in-07-z2.arcor-online.net
 (mail-in-07-z2.arcor-online.net [151.189.8.19])	by mx.arcor.de (Postfix)
 with ESMTP id B1B202BAC2A; Mon, 15 Jun 2009 23:41:54 +0200 (CEST)
Received: from mail-in-03.arcor-online.net
 (mail-in-03.arcor-online.net [151.189.21.43])
	by mail-in-07-z2.arcor-online.net (Postfix) with ESMTP id A47982C7146; Mon,
 15 Jun 2009 23:41:54 +0200 (CEST)
Received: from jupiterb48.nrubsig.org
 (dslb-188-097-011-101.pools.arcor-ip.net [188.97.11.101])
	by mail-in-03.arcor-online.net (Postfix) with ESMTPS id 93B7F2C2C6E; Mon,
 15 Jun 2009 23:41:53 +0200 (CEST)
Received: from nrubsig.org (localhost [127.0.0.1])	by jupiterb48.nrubsig.org
 (8.13.8+Sun/8.13.8) with ESMTP id n5FLfohl000816; Mon,
 15 Jun 2009 23:41:51 +0200 (CEST)
Date: Mon, 15 Jun 2009 23:41:50 +0200
From: Roland Mainz <roland.mainz@nrubsig.org>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
Sender: gisburn@jupiterb48.nrubsig.org
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: Rich Burridge <rich.burridge@sun.com>,
        John Sonnenschein <John.Sonnenschein@sun.com>, PSARC-ext@sun.com
Message-id: <4A36C01E.70119FAB@nrubsig.org>
MIME-version: 1.0
X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.11 sun4u)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-Accept-Language: en
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-03.arcor-online.net 93B7F2C2C6E
X-Antispam: No, score=0.0/5.0, scanned in 0.365sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
Status: RO
Content-Length: 1194

Nicolas Williams wrote:
> On Mon, Jun 15, 2009 at 01:40:21PM -0700, Rich Burridge wrote:
> >         Between 6.7 and 7.4, the following new commands were introduced:

Erm... where can I find the full ARC case ? Somehow I never got the
email for this... ;-(

> >         /usr/gnu/bin/
> >                 chcon
> >                 mktemp
> >                 runcon
> >                 timeout
> >                 truncated
> >                        Location                     Uncommitted
> >                        Invocation                   Uncommitted
> >                        Human-readable output        Not an Interface
> 
> chcon and runcon are specific to SELinux.  What would they do on
> Solaris?
> 
> /usr/bin already has an mktemp.  How does it differ from the GNU
> version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
> GNU, but "unsafe operation" in Solaris).

BTW: The next ksh93-integration update will cover /usr/bin/mktemp and
add the non-conflicting BSD+GNU options.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

From Rich.Burridge@sun.com Mon Jun 15 15:16:18 2009
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 n5FMGI9S006116
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 15:16:18 -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.2) with ESMTP id n5FMF1aa041363
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 15 Jun 2009 16:16:18 -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 <0KLA00807WIXQD00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:16:09 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA007GBWIXM500@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 15:16:09 -0700 (PDT)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5FMG9Qa027650	for
 <PSARC-ext@sun.com>; Mon, 15 Jun 2009 15:16:09 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 id <0KLA00J00WE04100@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:16:09 -0700 (PDT)
Received: from [129.146.225.8] ([unknown] [129.146.225.8])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 with ESMTPSA id <0KLA0032PWIU23D0@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:16:06 -0700 (PDT)
Date: Mon, 15 Jun 2009 15:15:39 -0700
From: Rich Burridge <Rich.Burridge@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <20090615212653.GU1308@Sun.COM>
Sender: Rich.Burridge@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: PSARC-ext@sun.com, John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <4A36C80B.7080906@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
Status: RO
Content-Length: 1601

Nicolas Williams wrote:
> On Mon, Jun 15, 2009 at 01:40:21PM -0700, Rich Burridge wrote:
>   
>>         Between 6.7 and 7.4, the following new commands were introduced:
>>
>>         /usr/gnu/bin/
>>                 chcon
>>                 mktemp
>>                 runcon
>>                 timeout
>>                 truncated
>>                        Location                     Uncommitted
>>                        Invocation                   Uncommitted
>>                        Human-readable output        Not an Interface
>>     
>
> chcon and runcon are specific to SELinux.  What would they do on
> Solaris?
>   

No.

> /usr/bin already has an mktemp.  How does it differ from the GNU
> version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
> GNU, but "unsafe operation" in Solaris).
>   

I see you've answered your own question. :-)

> There's no 'timeout' in /usr/bin, so why not put the timeout command in
> /usr/bin?
>   

Okay.

> Also, I think you meant 'truncate', not 'truncated'.

Yes.

>   Neither exists in
> /usr/bin, so they should go in there too.
>   

Okay.


>>        <command>.1 manual pages for the following commands:
>>     
>
> It'd be nice if you could put pre-formatted manpages (piped through col
> -b) in there.  The method that most users will have for accessing the
> case directory is the web interface, and reading raw nroff through it is
> a pain.
>   

Good point. I've generated these in the case "materials" sub-directory.

I've updated the proposal.txt file in the case directory
accordingly (this is now "Revision 2").

Thanks.


From Nicolas.Williams@sun.com Mon Jun 15 15:29:07 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FMT7dj006440
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 15:29:07 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5FMT69O019943;
	Mon, 15 Jun 2009 15:29:07 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLA00I03X4IIO00@brm-avmta-1.central.sun.com>; Mon,
 15 Jun 2009 16:29:06 -0600 (MDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA001FDX480EB0@brm-avmta-1.central.sun.com>; Mon,
 15 Jun 2009 16:28:56 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n5FMQPQo001844;
 Mon, 15 Jun 2009 17:26:25 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n5FMQPo0001843; Mon,
 15 Jun 2009 17:26:25 -0500 (CDT)
Date: Mon, 15 Jun 2009 17:26:25 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <4A36C80B.7080906@sun.com>
To: Rich Burridge <Rich.Burridge@sun.com>
Cc: PSARC-ext@sun.com, John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <20090615222625.GX1308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <4A36C80B.7080906@sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 965

On Mon, Jun 15, 2009 at 03:15:39PM -0700, Rich Burridge wrote:
> Nicolas Williams wrote:
> >On Mon, Jun 15, 2009 at 01:40:21PM -0700, Rich Burridge wrote:
> >>        Between 6.7 and 7.4, the following new commands were introduced:
> >>
> >>        /usr/gnu/bin/
> >>                chcon
> >>                runcon
> >
> >chcon and runcon are specific to SELinux.  What would they do on
> >Solaris?
> >  
> 
> No.

No... what?  No, they won't be delivered by this case?  No, they won't
do anything?  No, they are not specific to SELinux?

> >It'd be nice if you could put pre-formatted manpages (piped through col
> >-b) in there.  The method that most users will have for accessing the
> >case directory is the web interface, and reading raw nroff through it is
> >a pain.
> 
> Good point. I've generated these in the case "materials" sub-directory.
> 
> I've updated the proposal.txt file in the case directory
> accordingly (this is now "Revision 2").

Thanks.

From Rich.Burridge@sun.com Mon Jun 15 15:34:12 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FMYCiA006818
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 15:34:12 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5FMYBBJ021650
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 15 Jun 2009 15:34:12 -0700 (PDT)
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 <0KLA0070JXCYY700@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:34:10 -0700 (PDT)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA00HZUXCYHHB0@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 15:34:10 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5FMYAVv014627	for
 <PSARC-ext@sun.com>; Mon, 15 Jun 2009 15:34:10 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 id <0KLA00700WZDLG00@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:34:10 -0700 (PDT)
Received: from [129.146.225.8] ([unknown] [129.146.225.8])
 by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 with ESMTPSA id <0KLA00LAXXCOQ250@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:34:00 -0700 (PDT)
Date: Mon, 15 Jun 2009 15:33:31 -0700
From: Rich Burridge <Rich.Burridge@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <20090615222625.GX1308@Sun.COM>
Sender: Rich.Burridge@sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: PSARC-ext@sun.com, John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <4A36CC3B.9030707@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <4A36C80B.7080906@sun.com> <20090615222625.GX1308@Sun.COM>
User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
Status: RO
Content-Length: 727

Nicolas Williams wrote:
> On Mon, Jun 15, 2009 at 03:15:39PM -0700, Rich Burridge wrote:
>   
>> Nicolas Williams wrote:
>>     
>>> On Mon, Jun 15, 2009 at 01:40:21PM -0700, Rich Burridge wrote:
>>>       
>>>>        Between 6.7 and 7.4, the following new commands were introduced:
>>>>
>>>>        /usr/gnu/bin/
>>>>                chcon
>>>>                runcon
>>>>         
>>> chcon and runcon are specific to SELinux.  What would they do on
>>> Solaris?
>>>  
>>>       
>> No.
>>     
>
> No... what?  No, they won't be delivered by this case?  No, they won't
> do anything?  No, they are not specific to SELinux?
>   

Sorry, "No, they won't be delivered by this case."

The revised proposal.txt has this change.



From Rich.Burridge@sun.com Mon Jun 15 15:37:06 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FMb53N006834
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 15:37:05 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n5FMb1Bf003789
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Tue, 16 Jun 2009 06:37:04 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLA00J0NXHRFC00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 16:37:03 -0600 (MDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA001XHXHR0EB0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 16:37:03 -0600 (MDT)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5FMb2ck029817	for
 <PSARC-ext@sun.com>; Mon, 15 Jun 2009 15:37:02 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 id <0KLA00I00XGEUX00@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:37:02 -0700 (PDT)
Received: from [129.146.225.8] ([unknown] [129.146.225.8])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 with ESMTPSA id <0KLA00A6IXHQ5T30@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 15:37:02 -0700 (PDT)
Date: Mon, 15 Jun 2009 15:36:33 -0700
From: Rich Burridge <Rich.Burridge@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <4A36C01E.70119FAB@nrubsig.org>
Sender: Rich.Burridge@sun.com
To: Roland Mainz <roland.mainz@nrubsig.org>
Cc: John Sonnenschein <John.Sonnenschein@sun.com>, PSARC-ext@sun.com
Message-id: <4A36CCF1.3080700@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <4A36C01E.70119FAB@nrubsig.org>
User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
Status: RO
Content-Length: 705

Roland Mainz wrote:
> Nicolas Williams wrote:
>   
>> On Mon, Jun 15, 2009 at 01:40:21PM -0700, Rich Burridge wrote:
>>     
>>>         Between 6.7 and 7.4, the following new commands were introduced:
>>>       
>
> Erm... where can I find the full ARC case ? Somehow I never got the
> email for this... ;-(
>   

http://arc.opensolaris.org/caselog/PSARC/2007/048/

>> /usr/bin already has an mktemp.  How does it differ from the GNU
>> version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
>> GNU, but "unsafe operation" in Solaris).
>>     
>
> BTW: The next ksh93-integration update will cover /usr/bin/mktemp and
> add the non-conflicting BSD+GNU options.
>   

Excellent.

Thanks.



From John.Sonnenschein@Sun.COM Mon Jun 15 16:07:01 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5FN71Nr002698
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 15 Jun 2009 16:07:01 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5FN70xS025514
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Tue, 16 Jun 2009 00:07:00 +0100 (BST)
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 <0KLA00A01YVN8000@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 16:06:59 -0700 (PDT)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLA00HATYVNHNC0@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 16:06:59 -0700 (PDT)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5FN6x7q028437	for
 <PSARC-ext@sun.com>; Mon, 15 Jun 2009 23:06:59 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009))
 id <0KLA00000Y2SVZ00@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 15 Jun 2009 17:06:59 -0600 (MDT)
Received: from [192.168.1.109] ([unknown] [76.10.188.43])
 by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit
 (built Apr 16 2009)) with ESMTPSA id <0KLA008C9YV702B0@mail-amer.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 15 Jun 2009 17:06:44 -0600 (MDT)
Date: Mon, 15 Jun 2009 16:06:43 -0700
From: John Sonnenschein <John.Sonnenschein@Sun.COM>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <4A36BECB.7020109@sun.com>
Sender: John.Sonnenschein@Sun.COM
To: Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Cc: Rich Burridge <Rich.Burridge@Sun.COM>, PSARC-ext@Sun.COM
Message-id: <4A36D403.3070901@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <4A36BECB.7020109@sun.com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
Status: RO
Content-Length: 488

Alan Coopersmith wrote:
> Rich Burridge wrote:
>   
>> I am sponsoring this fast-track for John Sonnenschein.
>>     
>
> This case doesn't seem to include fixing the issues John filed bugs for
> earlier, such as lack of ZFS acl support in commands like GNU ls & chmod.
>
> Will that be handled in a later case?
>   

Whatever form (GNU Solaris-ization|Solaris modernization) takes will be 
handled in a different case, this is just an upgrade to the coreutils 
we're currently shipping.

From casper@holland.sun.com Tue Jun 16 00:55:40 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5G7td5p014877
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 00:55:39 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5G7tSjT006978
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Tue, 16 Jun 2009 08:55:38 +0100 (BST)
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 <0KLB0010RNCN7V00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Tue, 16 Jun 2009 00:55:35 -0700 (PDT)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLB00EAJNCM8S70@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Tue,
 16 Jun 2009 00:55:35 -0700 (PDT)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5G7tUaB008360; Tue, 16 Jun 2009 08:55:30 +0100 (BST)
Date: Tue, 16 Jun 2009 09:55:30 +0200
From: Casper.Dik@sun.com
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <20090615212653.GU1308@Sun.COM>
Sender: casper@holland.sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: Rich Burridge <Rich.Burridge@sun.com>, PSARC-ext@sun.com,
        John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
Status: RO
Content-Length: 238


>/usr/bin already has an mktemp.  How does it differ from the GNU
>version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
>GNU, but "unsafe operation" in Solaris).

Solaris' mktemp takes after the OpenBSD mktemp.

Casper


From Nicolas.Williams@sun.com Tue Jun 16 09:28:00 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GGS0aG022317
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 09:28:00 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n5GGRoms027656;
	Wed, 17 Jun 2009 00:27:54 +0800 (SGT)
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 <0KLC0080TB2IRA00@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 09:27:54 -0700 (PDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC002JMB2HSP90@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 09:27:53 -0700 (PDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n5GGPNwg002406;
 Tue, 16 Jun 2009 11:25:23 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n5GGPNbp002405; Tue,
 16 Jun 2009 11:25:23 -0500 (CDT)
Date: Tue, 16 Jun 2009 11:25:23 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
To: Casper.Dik@sun.com
Cc: Rich Burridge <Rich.Burridge@sun.com>, PSARC-ext@sun.com,
        John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <20090616162522.GS1308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 416

On Tue, Jun 16, 2009 at 09:55:30AM +0200, Casper.Dik@Sun.COM wrote:
> 
> >/usr/bin already has an mktemp.  How does it differ from the GNU
> >version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
> >GNU, but "unsafe operation" in Solaris).
> 
> Solaris' mktemp takes after the OpenBSD mktemp.

What is the point of the Solaris mktemp(1) -u option though?  Why would
anyone choose "unsafe operation"?

From casper@holland.sun.com Tue Jun 16 11:15:58 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GIFv7Z028549
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:15:58 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5GIFUJm023552
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Tue, 16 Jun 2009 19:15:57 +0100 (BST)
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 <0KLC00F0BG2E5I00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Tue, 16 Jun 2009 11:15:50 -0700 (PDT)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00EY6G2DEZ00@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Tue,
 16 Jun 2009 11:15:50 -0700 (PDT)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5GIFkA3020919; Tue, 16 Jun 2009 19:15:46 +0100 (BST)
Date: Tue, 16 Jun 2009 20:15:46 +0200
From: Casper.Dik@sun.com
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <20090616162522.GS1308@Sun.COM>
Sender: casper@holland.sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: Rich Burridge <Rich.Burridge@sun.com>, PSARC-ext@sun.com,
        John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
Status: RO
Content-Length: 596


>On Tue, Jun 16, 2009 at 09:55:30AM +0200, Casper.Dik@Sun.COM wrote:
>> 
>> >/usr/bin already has an mktemp.  How does it differ from the GNU
>> >version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
>> >GNU, but "unsafe operation" in Solaris).
>> 
>> Solaris' mktemp takes after the OpenBSD mktemp.
>
>What is the point of the Solaris mktemp(1) -u option though?  Why would
>anyone choose "unsafe operation"?

It came from OpenBSD.

I can understand the reason, though, you can't always want to create a 
file, you may want an unique value:

unique=$(mktemp -u XXXXXX)

Casper


From Nicolas.Williams@sun.com Tue Jun 16 11:17:32 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GIHVgq028573
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:17:32 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5GIHODA024908;
	Tue, 16 Jun 2009 19:17:28 +0100 (BST)
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 <0KLC00F01G549Y00@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 11:17:28 -0700 (PDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00E7PG53F710@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 11:17:27 -0700 (PDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n5GIEroJ002559;
 Tue, 16 Jun 2009 13:14:53 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n5GIErcf002558; Tue,
 16 Jun 2009 13:14:53 -0500 (CDT)
Date: Tue, 16 Jun 2009 13:14:53 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355 FastTrack
 timeout 06/22/2009]
In-reply-to: <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
To: Casper.Dik@sun.com
Cc: Rich Burridge <Rich.Burridge@sun.com>, PSARC-ext@sun.com,
        John Sonnenschein <John.Sonnenschein@sun.com>
Message-id: <20090616181452.GK1308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 371

On Tue, Jun 16, 2009 at 08:15:46PM +0200, Casper.Dik@Sun.COM wrote:
> >What is the point of the Solaris mktemp(1) -u option though?  Why would
> >anyone choose "unsafe operation"?
> 
> It came from OpenBSD.
> 
> I can understand the reason, though, you can't always want to create a 
> file, you may want an unique value:
> 
> unique=$(mktemp -u XXXXXX)

I see.  Thanks.

From roland.mainz@nrubsig.org Tue Jun 16 11:26:06 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GIQ5HW028685
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:26:06 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5GIQ0hc000290;
	Tue, 16 Jun 2009 19:26:01 +0100 (BST)
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 <0KLC00801GJC1000@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 11:26:00 -0700 (PDT)
Received: from sca-ea-mail-2.sun.com ([192.18.43.25])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC0020JGJBZM40@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 11:25:59 -0700 (PDT)
Received: from relay43i.sun.com ([192.5.209.74])
	by sca-ea-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5GIMNuB018428;
 Tue, 16 Jun 2009 18:25:59 +0000 (GMT)
Received: from mmp41es.mmp.us.syntegra.com ([160.41.221.10] [160.41.221.10])
 by relay43i.sun.com with ESMTP id BT-MMP-54731; Tue,
 16 Jun 2009 18:25:47 +0000 (Z)
Received: from relay44i.sun.com (relay44i.sun.com [192.5.209.118])
 by mmp41es.mmp.us.syntegra.com with ESMTP id BT-MMP-65228532; Tue,
 16 Jun 2009 18:25:46 +0000 (Z)
Received: from mail-in-14.arcor-online.net ([151.189.21.54] [151.189.21.54])
 by relay4i.sun.com with ESMTP id BT-MMP-645973; Tue,
 16 Jun 2009 18:25:46 +0000 (Z)
Received: from mail-in-19-z2.arcor-online.net
 (mail-in-19-z2.arcor-online.net [151.189.8.36])	by mx.arcor.de (Postfix)
 with ESMTP id F261B28B275; Tue, 16 Jun 2009 20:24:44 +0200 (CEST)
Received: from mail-in-11.arcor-online.net
 (mail-in-11.arcor-online.net [151.189.21.51])
	by mail-in-19-z2.arcor-online.net (Postfix) with ESMTP id 058DA6BFE7; Tue,
 16 Jun 2009 20:24:45 +0200 (CEST)
Received: from jupiterb48.nrubsig.org
 (dslb-188-097-004-023.pools.arcor-ip.net [188.97.4.23])
	by mail-in-11.arcor-online.net (Postfix) with ESMTPS id D042FE3BB8; Tue,
 16 Jun 2009 20:24:42 +0200 (CEST)
Received: from nrubsig.org (localhost [127.0.0.1])	by jupiterb48.nrubsig.org
 (8.13.8+Sun/8.13.8) with ESMTP id n5GIOdPJ000829; Tue,
 16 Jun 2009 20:24:40 +0200 (CEST)
Date: Tue, 16 Jun 2009 20:24:39 +0200
From: Roland Mainz <roland.mainz@nrubsig.org>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
Sender: gisburn@jupiterb48.nrubsig.org
To: Casper.Dik@sun.com
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        John Sonnenschein <John.Sonnenschein@sun.com>, PSARC-ext@sun.com,
        Rich Burridge <Rich.Burridge@sun.com>
Message-id: <4A37E367.A3802F82@nrubsig.org>
MIME-version: 1.0
X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.11 sun4u)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-Accept-Language: en
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-11.arcor-online.net D042FE3BB8
X-Antispam: No, score=0.0/5.0, scanned in 0.196sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
Status: RO
Content-Length: 1187

Casper.Dik@sun.com wrote:
> >On Tue, Jun 16, 2009 at 09:55:30AM +0200, Casper.Dik@Sun.COM wrote:
> >>
> >> >/usr/bin already has an mktemp.  How does it differ from the GNU
> >> >version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
> >> >GNU, but "unsafe operation" in Solaris).
> >>
> >> Solaris' mktemp takes after the OpenBSD mktemp.
> >
> >What is the point of the Solaris mktemp(1) -u option though?  Why would
> >anyone choose "unsafe operation"?
> 
> It came from OpenBSD.
> 
> I can understand the reason, though, you can't always want to create a
> file, you may want an unique value:
> 
> unique=$(mktemp -u XXXXXX)

Ok... that makes sense... :-)

Erm... what is the stabilty state of "-u" - wasn't it "Commited
Obsolete" ? If that's the case it may be nice to get rid of the
"Obsolete" and poke the GNU coreutils maintainers to rename the "dryrun"
option to something else (I'll poke AST+BSD upstream to do the same for
their "mktemp" command (e.g. clarify documentation)).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

From casper@holland.sun.com Tue Jun 16 11:32:00 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GIW0gK028747
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:32:00 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5GIW01L006464
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Tue, 16 Jun 2009 11:32:00 -0700 (PDT)
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 <0KLC00821GTCRN00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Tue, 16 Jun 2009 11:32:00 -0700 (PDT)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC002CJGTAZK50@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Tue,
 16 Jun 2009 11:31:59 -0700 (PDT)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5GIVsBl024461; Tue, 16 Jun 2009 19:31:54 +0100 (BST)
Date: Tue, 16 Jun 2009 20:31:54 +0200
From: Casper.Dik@sun.com
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <4A37E367.A3802F82@nrubsig.org>
Sender: casper@holland.sun.com
To: Roland Mainz <roland.mainz@nrubsig.org>
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        John Sonnenschein <John.Sonnenschein@sun.com>, PSARC-ext@sun.com,
        Rich Burridge <Rich.Burridge@sun.com>
Message-id: <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
Status: RO
Content-Length: 637



>Ok... that makes sense... :-)
>
>Erm... what is the stabilty state of "-u" - wasn't it "Commited
>Obsolete" ? If that's the case it may be nice to get rid of the
>"Obsolete" and poke the GNU coreutils maintainers to rename the "dryrun"
>option to something else (I'll poke AST+BSD upstream to do the same for
>their "mktemp" command (e.g. clarify documentation)).

I don't think so; it's in the manual page.

I'm the only person clever enough to realize that "mktemp -u" in OpenBSD 
and Solaris is the exact same function as --dryrun in GNU coreutils?

-u, --dry-run
    do not create anything; merely print a name (unsafe) 

Casper


From gsf@research.att.com Tue Jun 16 11:36:20 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GIaKFh028828
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:36:20 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5GIaHXO007926;
	Tue, 16 Jun 2009 11:36:18 -0700 (PDT)
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 <0KLC0090LH0HDO00@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 11:36:17 -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 <0KLC002S8H0HZM40@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 11:36:17 -0700 (PDT)
Received: from relay41i.sun.com ([192.5.209.70])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5GIVTob027295; Tue,
 16 Jun 2009 18:36:17 +0000 (GMT)
Received: from mms49es.mms.us.syntegra.com ([160.41.221.232] [160.41.221.232])
 by relay41i.sun.com with ESMTP id BT-MMP-6873878; Tue,
 16 Jun 2009 18:36:17 +0000 (Z)
Received: from relay42i.sun.com (relay42i.sun.com [192.5.209.72])
 by mms49es.mms.us.syntegra.com with ESMTP id BT-MMP-35765578; Tue,
 16 Jun 2009 18:36:16 +0000 (Z)
Received: from mail-yellow.research.att.com ([192.20.225.112] [192.20.225.112])
 by relay4i.sun.com with ESMTP id BT-MMP-7531309; Tue,
 16 Jun 2009 18:36:14 +0000 (Z)
Received: from penguin.research.att.com
 (penguin.research.att.com [135.207.176.48])	by mail-green.research.att.com
 (Postfix) with ESMTP id 8B9208E4F; Tue, 16 Jun 2009 14:35:56 -0400 (EDT)
Received: (from gsf@localhost)	by penguin.research.att.com
 (8.13.8/8.12.10/Submit) id n5GIZuuP001982; Tue, 16 Jun 2009 14:35:56 -0400
Date: Tue, 16 Jun 2009 14:35:56 -0400
From: Glenn Fowler <gsf@research.att.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
To: Casper.Dik@sun.com, roland.mainz@nrubsig.org
Cc: John.Sonnenschein@sun.com, PSARC-ext@sun.com, Rich.Burridge@sun.com
Message-id: <200906161835.n5GIZuuP001982@penguin.research.att.com>
Organization: AT&T Research
MIME-version: 1.0
X-Mailer: mailx (AT&T/BSD) 9.9 2009-06-09
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.060sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
Status: RO
Content-Length: 1306


how would you clarify this:

  -u, --undo|unsafe|unwise
                    Remove the file/directory before exiting. Who would want to do that.

  version         mktemp (AT&T Research) 2009-05-01

On Tue, 16 Jun 2009 20:24:39 +0200 Roland Mainz wrote:
> Casper.Dik@sun.com wrote:
> > >On Tue, Jun 16, 2009 at 09:55:30AM +0200, Casper.Dik@Sun.COM wrote:
> > >>
> > >> >/usr/bin already has an mktemp.  How does it differ from the GNU
> > >> >version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
> > >> >GNU, but "unsafe operation" in Solaris).
> > >>
> > >> Solaris' mktemp takes after the OpenBSD mktemp.
> > >
> > >What is the point of the Solaris mktemp(1) -u option though?  Why would
> > >anyone choose "unsafe operation"?
> > 
> > It came from OpenBSD.
> > 
> > I can understand the reason, though, you can't always want to create a
> > file, you may want an unique value:
> > 
> > unique=$(mktemp -u XXXXXX)

> Ok... that makes sense... :-)

> Erm... what is the stabilty state of "-u" - wasn't it "Commited
> Obsolete" ? If that's the case it may be nice to get rid of the
> "Obsolete" and poke the GNU coreutils maintainers to rename the "dryrun"
> option to something else (I'll poke AST+BSD upstream to do the same for
> their "mktemp" command (e.g. clarify documentation)).


From roland.mainz@nrubsig.org Tue Jun 16 11:39:06 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GId5Ne028898
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:39:05 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5GId3S7008512;
	Tue, 16 Jun 2009 11:39:04 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLC0030LH527200@brm-avmta-1.central.sun.com>; Tue,
 16 Jun 2009 12:39:02 -0600 (MDT)
Received: from sca-ea-mail-4.sun.com ([192.18.43.22])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00LWDH52C330@brm-avmta-1.central.sun.com>; Tue,
 16 Jun 2009 12:39:02 -0600 (MDT)
Received: from relay42i.sun.com ([192.5.209.72])
	by sca-ea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5GIRTWH003830;
 Tue, 16 Jun 2009 18:39:01 +0000 (GMT)
Received: from mmp42es.mmp.us.syntegra.com ([160.41.221.11] [160.41.221.11])
 by relay42i.sun.com with ESMTP id BT-MMP-354299; Tue,
 16 Jun 2009 18:39:01 +0000 (Z)
Received: from relay44i.sun.com (relay44i.sun.com [192.5.209.118])
 by mmp42es.mmp.us.syntegra.com with ESMTP id BT-MMP-36088414; Tue,
 16 Jun 2009 18:39:00 +0000 (Z)
Received: from mail-in-05.arcor-online.net ([151.189.21.45] [151.189.21.45])
 by relay4i.sun.com with ESMTP id BT-MMP-668496; Tue,
 16 Jun 2009 18:39:00 +0000 (Z)
Received: from mail-in-08-z2.arcor-online.net
 (mail-in-08-z2.arcor-online.net [151.189.8.20])	by mx.arcor.de (Postfix)
 with ESMTP id 24316332BA8; Tue, 16 Jun 2009 20:38:59 +0200 (CEST)
Received: from mail-in-11.arcor-online.net
 (mail-in-11.arcor-online.net [151.189.21.51])
	by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 235E12130E6; Tue,
 16 Jun 2009 20:38:59 +0200 (CEST)
Received: from jupiterb48.nrubsig.org
 (dslb-188-097-004-023.pools.arcor-ip.net [188.97.4.23])
	by mail-in-11.arcor-online.net (Postfix) with ESMTPS id 76A8BE3E16; Tue,
 16 Jun 2009 20:38:57 +0200 (CEST)
Received: from nrubsig.org (localhost [127.0.0.1])	by jupiterb48.nrubsig.org
 (8.13.8+Sun/8.13.8) with ESMTP id n5GIctM3000872; Tue,
 16 Jun 2009 20:38:55 +0200 (CEST)
Date: Tue, 16 Jun 2009 20:38:55 +0200
From: Roland Mainz <roland.mainz@nrubsig.org>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
Sender: gisburn@jupiterb48.nrubsig.org
To: Glenn Fowler <gsf@research.att.com>
Cc: Casper.Dik@sun.com, John.Sonnenschein@sun.com, PSARC-ext@sun.com,
        Rich.Burridge@sun.com
Message-id: <4A37E6BF.B6A993C2@nrubsig.org>
MIME-version: 1.0
X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.11 sun4u)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-Accept-Language: en
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-11.arcor-online.net 76A8BE3E16
X-Antispam: No, score=0.0/5.0, scanned in 0.113sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161835.n5GIZuuP001982@penguin.research.att.com>
Status: RO
Content-Length: 1711

Glenn Fowler wrote:
> On Tue, 16 Jun 2009 20:24:39 +0200 Roland Mainz wrote:
> > Casper.Dik@sun.com wrote:
> > > >On Tue, Jun 16, 2009 at 09:55:30AM +0200, Casper.Dik@Sun.COM wrote:
> > > >>
> > > >> >/usr/bin already has an mktemp.  How does it differ from the GNU
> > > >> >version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
> > > >> >GNU, but "unsafe operation" in Solaris).
> > > >>
> > > >> Solaris' mktemp takes after the OpenBSD mktemp.
> > > >
> > > >What is the point of the Solaris mktemp(1) -u option though?  Why would
> > > >anyone choose "unsafe operation"?
> > >
> > > It came from OpenBSD.
> > >
> > > I can understand the reason, though, you can't always want to create a
> > > file, you may want an unique value:
> > >
> > > unique=$(mktemp -u XXXXXX)
> 
> > Ok... that makes sense... :-)
> 
> > Erm... what is the stabilty state of "-u" - wasn't it "Commited
> > Obsolete" ? If that's the case it may be nice to get rid of the
> > "Obsolete" and poke the GNU coreutils maintainers to rename the "dryrun"
> > option to something else (I'll poke AST+BSD upstream to do the same for
> > their "mktemp" command (e.g. clarify documentation)).
> 
> how would you clarify this:
> 
>   -u, --undo|unsafe|unwise
>                     Remove the file/directory before exiting. Who would want to do that.
> 
>   version         mktemp (AT&T Research) 2009-05-01

See the other email with the patch I send a few seconds to you
(ahhgllrr... I forgot to update the version number (new patch follows)).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

From gsf@research.att.com Tue Jun 16 11:39:19 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GIdIXY028912
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:39:19 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5GIdGeD015354;
	Tue, 16 Jun 2009 11:39:17 -0700 (PDT)
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 <0KLC00929H5GO700@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 11:39:16 -0700 (PDT)
Received: from sca-ea-mail-4.sun.com ([192.18.43.22])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC0023AH5GZJ60@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 11:39:16 -0700 (PDT)
Received: from relay41i.sun.com ([192.5.209.70])
	by sca-ea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5GIVT8s004845;
 Tue, 16 Jun 2009 18:39:15 +0000 (GMT)
Received: from mms48es.mms.us.syntegra.com ([160.41.221.230] [160.41.221.230])
 by relay41i.sun.com with ESMTP id BT-MMP-6874179; Tue,
 16 Jun 2009 18:39:15 +0000 (Z)
Received: from relay45i.sun.com (relay45i.sun.com [192.5.209.94])
 by mms48es.mms.us.syntegra.com with ESMTP id BT-MMP-35978304; Tue,
 16 Jun 2009 18:39:15 +0000 (Z)
Received: from mail-yellow.research.att.com ([192.20.225.112] [192.20.225.112])
 by relay4i.sun.com with ESMTP id BT-MMP-6232146; Tue,
 16 Jun 2009 18:39:15 +0000 (Z)
Received: from penguin.research.att.com
 (penguin.research.att.com [135.207.176.48])	by mail-green.research.att.com
 (Postfix) with ESMTP id 696688E3F; Tue, 16 Jun 2009 14:39:14 -0400 (EDT)
Received: (from gsf@localhost)	by penguin.research.att.com
 (8.13.8/8.12.10/Submit) id n5GIdEa7002095; Tue, 16 Jun 2009 14:39:14 -0400
Date: Tue, 16 Jun 2009 14:39:14 -0400
From: Glenn Fowler <gsf@research.att.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
To: Casper.Dik@sun.com, roland.mainz@nrubsig.org
Cc: John.Sonnenschein@sun.com, PSARC-ext@sun.com, Rich.Burridge@sun.com
Message-id: <200906161839.n5GIdEa7002095@penguin.research.att.com>
Organization: AT&T Research
MIME-version: 1.0
X-Mailer: mailx (AT&T/BSD) 9.9 2009-06-09
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.053sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
Status: RO
Content-Length: 770


On Tue, 16 Jun 2009 20:31:54 +0200 Casper.Dik@sun.com wrote:
> I don't think so; it's in the manual page.

> I'm the only person clever enough to realize that "mktemp -u" in OpenBSD 
> and Solaris is the exact same function as --dryrun in GNU coreutils?

> -u, --dry-run
>     do not create anything; merely print a name (unsafe) 

not the same as solars mktemp(1)
subtle difference is if the creat/mkdir happens or not
and if it does -u does an unlink/rmdir

     -u              Operate in unsafe mode.  The  temp  file  is
                     unlinked   before   mktemp  exits.  This  is
                     slightly better than mktemp(3C),  but  still
                     introduces  a  race  condition.  Use of this
                     option is discouraged.


From casper@holland.sun.com Tue Jun 16 11:46:20 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GIkJgC029050
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 11:46:20 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5GIjrDr012843
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Tue, 16 Jun 2009 19:46:19 +0100 (BST)
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 <0KLC00A41HH5JB00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Tue, 16 Jun 2009 11:46:17 -0700 (PDT)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC002ZDHH3ZJ60@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Tue,
 16 Jun 2009 11:46:16 -0700 (PDT)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5GIkB2q027563; Tue, 16 Jun 2009 19:46:11 +0100 (BST)
Date: Tue, 16 Jun 2009 20:46:11 +0200
From: Casper.Dik@sun.com
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <200906161839.n5GIdEa7002095@penguin.research.att.com>
Sender: casper@holland.sun.com
To: Glenn Fowler <gsf@research.att.com>
Cc: roland.mainz@nrubsig.org, John.Sonnenschein@sun.com, PSARC-ext@sun.com,
        Rich.Burridge@sun.com
Message-id: <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
Status: RO
Content-Length: 1101


>
>On Tue, 16 Jun 2009 20:31:54 +0200 Casper.Dik@sun.com wrote:
>> I don't think so; it's in the manual page.
>
>> I'm the only person clever enough to realize that "mktemp -u" in OpenBSD 
>> and Solaris is the exact same function as --dryrun in GNU coreutils?
>
>> -u, --dry-run
>>     do not create anything; merely print a name (unsafe) 
>
>not the same as solars mktemp(1)
>subtle difference is if the creat/mkdir happens or not
>and if it does -u does an unlink/rmdir
>
>     -u              Operate in unsafe mode.  The  temp  file  is
>                     unlinked   before   mktemp  exits.  This  is
>                     slightly better than mktemp(3C),  but  still
>                     introduces  a  race  condition.  Use of this
>                     option is discouraged.

In GNU or ksh93?  It's merely semantics, I think,; you can't make sure 
that a filename is unique other than creating it with O_EXCL so we
need to unlink and we're certain that the file was unique at some
point in time.  I think they have the same "root" but someone didn't 
properly clone mktemp().  

Casper


From gsf@research.att.com Tue Jun 16 12:50:26 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GJoPX3029194
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 12:50:26 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5GJoKsg022382;
	Tue, 16 Jun 2009 20:50:22 +0100 (BST)
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 <0KLC00I09KFXUA00@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 12:50:21 -0700 (PDT)
Received: from sca-ea-mail-1.sun.com ([192.18.43.24])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00234KFWZJF0@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 12:50:20 -0700 (PDT)
Received: from relay42i.sun.com ([192.5.209.72])
	by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5GJeEli018055;
 Tue, 16 Jun 2009 19:50:20 +0000 (GMT)
Received: from mmp41es.mmp.us.syntegra.com ([160.41.221.10] [160.41.221.10])
 by relay42i.sun.com with ESMTP id BT-MMP-362275; Tue,
 16 Jun 2009 19:50:20 +0000 (Z)
Received: from relay43i.sun.com (relay43i.sun.com [192.5.209.74])
 by mmp41es.mmp.us.syntegra.com with ESMTP id BT-MMP-65343794; Tue,
 16 Jun 2009 19:50:19 +0000 (Z)
Received: from mail-yellow.research.att.com ([192.20.225.112] [192.20.225.112])
 by relay4i.sun.com with ESMTP id BT-MMP-813028; Tue,
 16 Jun 2009 19:50:19 +0000 (Z)
Received: from penguin.research.att.com
 (penguin.research.att.com [135.207.176.48])	by mail-green.research.att.com
 (Postfix) with ESMTP id C5A1E8E52; Tue, 16 Jun 2009 15:28:20 -0400 (EDT)
Received: (from gsf@localhost)	by penguin.research.att.com
 (8.13.8/8.12.10/Submit) id n5GJSKZD003414; Tue, 16 Jun 2009 15:28:20 -0400
Date: Tue, 16 Jun 2009 15:28:20 -0400
From: Glenn Fowler <gsf@research.att.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
To: Casper.Dik@sun.com, gsf@research.att.com
Cc: John.Sonnenschein@sun.com, PSARC-ext@sun.com, Rich.Burridge@sun.com,
        roland.mainz@nrubsig.org
Message-id: <200906161928.n5GJSKZD003414@penguin.research.att.com>
Organization: AT&T Research
MIME-version: 1.0
X-Mailer: mailx (AT&T/BSD) 9.9 2009-06-09
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.174sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
Status: RO
Content-Length: 1290


On Tue, 16 Jun 2009 20:46:11 +0200 Casper.Dik@Sun.COM wrote:
> >not the same as solars mktemp(1)
> >subtle difference is if the creat/mkdir happens or not
> >and if it does -u does an unlink/rmdir
> >
> >     -u              Operate in unsafe mode.  The  temp  file  is
> >                     unlinked   before   mktemp  exits.  This  is
> >                     slightly better than mktemp(3C),  but  still
> >                     introduces  a  race  condition.  Use of this
> >                     option is discouraged.

> In GNU or ksh93?  It's merely semantics, I think,; you can't make sure 
> that a filename is unique other than creating it with O_EXCL so we
> need to unlink and we're certain that the file was unique at some
> point in time.  I think they have the same "root" but someone didn't 
> properly clone mktemp().  

the -u description I quoted was from the solaris mktemp(1)

its not semantics assuming the gnu and solaris documentation describe the implementation

gnu --dry-run prints the name it would use to creat the file
but stops short of doing the creat

solaris -u does a creat, unlink, and then prints the name

presumably solaris -u could fail in the creat/unlink steps that gnu bypasses

the ksh mktemp builtin -u implementation follows the solaris docs


From carlsonj@phorcys.east.sun.com Tue Jun 16 13:01:07 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GK16jf029761
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 13:01:06 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5GK0tSj028844
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Tue, 16 Jun 2009 21:01:05 +0100 (BST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLC00B01KXSN500@brm-avmta-1.central.sun.com> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Tue, 16 Jun 2009 14:01:04 -0600 (MDT)
Received: from dm-east-02.east.sun.com ([129.148.13.5])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00LG5KXSBS80@brm-avmta-1.central.sun.com> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Tue,
 16 Jun 2009 14:01:04 -0600 (MDT)
Received: from phorcys.east.sun.com (phorcys.East.Sun.COM [129.148.174.143])
	by dm-east-02.east.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5GK11up018537; Tue, 16 Jun 2009 16:01:01 -0400 (EDT)
Received: from phorcys.east.sun.com (phorcys.local [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n5GJxhFb006463; Tue,
 16 Jun 2009 15:59:43 -0400 (EDT)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n5GJxgdL006460; Tue,
 16 Jun 2009 15:59:42 -0400 (EDT)
Date: Tue, 16 Jun 2009 15:59:42 -0400
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
	FastTracktimeout 06/22/2009]
In-reply-to: <200906161928.n5GJSKZD003414@penguin.research.att.com>
To: Glenn Fowler <gsf@research.att.com>
Cc: Casper.Dik@sun.com, John.Sonnenschein@sun.com, PSARC-ext@sun.com,
        Rich.Burridge@sun.com
Message-id: <18999.63918.856821.281562@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
Status: RO
Content-Length: 958

Glenn Fowler writes:
> the -u description I quoted was from the solaris mktemp(1)
> 
> its not semantics assuming the gnu and solaris documentation describe the implementation
> 
> gnu --dry-run prints the name it would use to creat the file
> but stops short of doing the creat
> 
> solaris -u does a creat, unlink, and then prints the name

In terms of defining what the output means, is there really a
difference between these two?

The Solaris one does a modest check to see if the name is unused.  But
since it doesn't hold onto that newly-created object, anyone else
could slip in a millisecond after mktemp(1) exit and create that same
object with nary a complaint observed.

I don't see now it's an architectural distinction.

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From gsf@research.att.com Tue Jun 16 13:18:01 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GKI0mY000006
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 13:18:01 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n5GKHkRJ028453;
	Wed, 17 Jun 2009 04:17:52 +0800 (SGT)
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 <0KLC00M0DLPQIE00@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 13:17:50 -0700 (PDT)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00ETGLPPF780@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 13:17:50 -0700 (PDT)
Received: from relay43i.sun.com ([192.5.209.74])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5GKCIIK018102; Tue,
 16 Jun 2009 20:17:49 +0000 (GMT)
Received: from mms49es.mms.us.syntegra.com ([160.41.221.232] [160.41.221.232])
 by relay43i.sun.com with ESMTP id BT-MMP-67062; Tue,
 16 Jun 2009 20:17:43 +0000 (Z)
Received: from relay42i.sun.com (relay42i.sun.com [192.5.209.72])
 by mms49es.mms.us.syntegra.com with ESMTP id BT-MMP-35902730; Tue,
 16 Jun 2009 20:17:43 +0000 (Z)
Received: from mail-yellow.research.att.com ([192.20.225.112] [192.20.225.112])
 by relay4i.sun.com with ESMTP id BT-MMP-7681443; Tue,
 16 Jun 2009 20:17:43 +0000 (Z)
Received: from penguin.research.att.com
 (penguin.research.att.com [135.207.176.48])	by mail-blue.research.att.com
 (Postfix) with ESMTP id DBA84F0E0D; Tue, 16 Jun 2009 16:17:42 -0400 (EDT)
Received: (from gsf@localhost)	by penguin.research.att.com
 (8.13.8/8.12.10/Submit) id n5GKHgsF005055; Tue, 16 Jun 2009 16:17:42 -0400
Date: Tue, 16 Jun 2009 16:17:42 -0400
From: Glenn Fowler <gsf@research.att.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
To: gsf@research.att.com, james.d.carlson@sun.com
Cc: Casper.Dik@sun.com, John.Sonnenschein@sun.com, PSARC-ext@sun.com,
        Rich.Burridge@sun.com
Message-id: <200906162017.n5GKHgsF005055@penguin.research.att.com>
Organization: AT&T Research
MIME-version: 1.0
X-Mailer: mailx (AT&T/BSD) 9.9 2009-06-09
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.054sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <18999.63918.856821.281562@gargle.gargle.HOWL>
Status: RO
Content-Length: 819


On Tue, 16 Jun 2009 15:59:42 -0400 James Carlson wrote:
> Glenn Fowler writes:
> The Solaris one does a modest check to see if the name is unused.  But
> since it doesn't hold onto that newly-created object, anyone else
> could slip in a millisecond after mktemp(1) exit and create that same
> object with nary a complaint observed.

> I don't see now it's an architectural distinction.

solaris does two extra calls { creat(2) or whatever and unlink(2) }
either of those two calls could fail, causing mktemp(1) to fail

gnu does not do the { creat unlink } and so doesn't have the associated error handling

so the solaris implementation can/may fail in ways that the gnu implementation cannot
e.g., what if the filesystem is full?

I don't like the -u option in either incarnation
but the incarnations are distinct


From carlsonj@phorcys.east.sun.com Tue Jun 16 13:28:05 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GKS4rK000171
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 13:28:05 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n5GKRqNe003462
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Wed, 17 Jun 2009 04:28:04 +0800 (SGT)
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 <0KLC0000BM6Q3600@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Tue, 16 Jun 2009 13:28:02 -0700 (PDT)
Received: from dm-east-02.east.sun.com ([129.148.13.5])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00E6VM6PFF80@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Tue,
 16 Jun 2009 13:28:01 -0700 (PDT)
Received: from phorcys.east.sun.com (phorcys.East.Sun.COM [129.148.174.143])
	by dm-east-02.east.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5GKRwae032745; Tue, 16 Jun 2009 16:27:58 -0400 (EDT)
Received: from phorcys.east.sun.com (phorcys.local [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id n5GKQe7D006544; Tue,
 16 Jun 2009 16:26:40 -0400 (EDT)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id n5GKQekJ006541; Tue,
 16 Jun 2009 16:26:40 -0400 (EDT)
Date: Tue, 16 Jun 2009 16:26:40 -0400
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <200906162017.n5GKHgsF005055@penguin.research.att.com>
To: Glenn Fowler <gsf@research.att.com>
Cc: Casper.Dik@sun.com, John.Sonnenschein@sun.com, PSARC-ext@sun.com,
        Rich.Burridge@sun.com
Message-id: <19000.0.403916.380737@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <18999.63918.856821.281562@gargle.gargle.HOWL>
 <200906162017.n5GKHgsF005055@penguin.research.att.com>
Status: RO
Content-Length: 1084

Glenn Fowler writes:
> On Tue, 16 Jun 2009 15:59:42 -0400 James Carlson wrote:
> > Glenn Fowler writes:
> > The Solaris one does a modest check to see if the name is unused.  But
> > since it doesn't hold onto that newly-created object, anyone else
> > could slip in a millisecond after mktemp(1) exit and create that same
> > object with nary a complaint observed.
> 
> > I don't see now it's an architectural distinction.
> 
> solaris does two extra calls { creat(2) or whatever and unlink(2) }
> either of those two calls could fail, causing mktemp(1) to fail

Arguably, the existence of a failure mode of any sort for -u is itself
just a bug.

> I don't like the -u option in either incarnation
> but the incarnations are distinct

I'm having a hard time seeing how the distinctions are actually
important, rather than being mere implementation artifacts.

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

From gsf@research.att.com Tue Jun 16 13:38:12 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GKcCw5000625
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 13:38:12 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5GKc9P2024312;
	Tue, 16 Jun 2009 13:38:10 -0700 (PDT)
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 <0KLC0000FMNLQI00@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 13:38:09 -0700 (PDT)
Received: from sca-ea-mail-1.sun.com ([192.18.43.24])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00E47MNLFG80@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 13:38:09 -0700 (PDT)
Received: from relay42i.sun.com ([192.5.209.72])
	by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5GKFm69026849;
 Tue, 16 Jun 2009 20:38:09 +0000 (GMT)
Received: from mmp41es.mmp.us.syntegra.com ([160.41.221.10] [160.41.221.10])
 by relay42i.sun.com with ESMTP id BT-MMP-367109; Tue,
 16 Jun 2009 20:38:09 +0000 (Z)
Received: from relay45i.sun.com (relay45i.sun.com [192.5.209.94])
 by mmp41es.mmp.us.syntegra.com with ESMTP id BT-MMP-65406162; Tue,
 16 Jun 2009 20:38:08 +0000 (Z)
Received: from mail-yellow.research.att.com ([192.20.225.112] [192.20.225.112])
 by relay4i.sun.com with ESMTP id BT-MMP-6420090; Tue,
 16 Jun 2009 20:38:08 +0000 (Z)
Received: from penguin.research.att.com
 (penguin.research.att.com [135.207.176.48])	by mail-green.research.att.com
 (Postfix) with ESMTP id 1761D961E; Tue, 16 Jun 2009 16:38:08 -0400 (EDT)
Received: (from gsf@localhost)	by penguin.research.att.com
 (8.13.8/8.12.10/Submit) id n5GKc7aq005672; Tue, 16 Jun 2009 16:38:07 -0400
Date: Tue, 16 Jun 2009 16:38:07 -0400
From: Glenn Fowler <gsf@research.att.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
To: gsf@research.att.com, james.d.carlson@sun.com
Cc: Casper.Dik@sun.com, John.Sonnenschein@sun.com, PSARC-ext@sun.com,
        Rich.Burridge@sun.com
Message-id: <200906162038.n5GKc7aq005672@penguin.research.att.com>
Organization: AT&T Research
MIME-version: 1.0
X-Mailer: mailx (AT&T/BSD) 9.9 2009-06-09
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.058sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <18999.63918.856821.281562@gargle.gargle.HOWL>
 <200906162017.n5GKHgsF005055@penguin.research.att.com>
 <19000.0.403916.380737@gargle.gargle.HOWL>
Status: RO
Content-Length: 740


On Tue, 16 Jun 2009 16:26:40 -0400 James Carlson wrote:
> Glenn Fowler writes:
> > solaris does two extra calls { creat(2) or whatever and unlink(2) }
> > either of those two calls could fail, causing mktemp(1) to fail

> Arguably, the existence of a failure mode of any sort for -u is itself
> just a bug.

how can reporting "file system full" be a bug in mktemp?
don't answer that -- I'm done commenting on mktemp -u
ksh builtin mktemp -u will do the creat/unlink and grouse about 
having to support -u in the documentation

> I'm having a hard time seeing how the distinctions are actually
> important, rather than being mere implementation artifacts.

as long as differences in error handling are not a problem
then its not a problem


From Nicolas.Williams@sun.com Tue Jun 16 13:42:03 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GKg2FD001013
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 13:42:02 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5GKfsNY023581;
	Tue, 16 Jun 2009 21:41:57 +0100 (BST)
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 <0KLC0020LMTVJD00@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 13:41:55 -0700 (PDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00L8VMTU19F0@nwk-avmta-1.sfbay.Sun.COM>; Tue,
 16 Jun 2009 13:41:55 -0700 (PDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n5GKVtrZ002731;
 Tue, 16 Jun 2009 15:31:55 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n5GKVtMM002730; Tue,
 16 Jun 2009 15:31:55 -0500 (CDT)
Date: Tue, 16 Jun 2009 15:31:55 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <18999.63918.856821.281562@gargle.gargle.HOWL>
To: James Carlson <james.d.carlson@sun.com>
Cc: Glenn Fowler <gsf@research.att.com>, Casper.Dik@sun.com,
        John.Sonnenschein@sun.com, PSARC-ext@sun.com, Rich.Burridge@sun.com
Message-id: <20090616203154.GQ1308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <18999.63918.856821.281562@gargle.gargle.HOWL>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 992

On Tue, Jun 16, 2009 at 03:59:42PM -0400, James Carlson wrote:
> Glenn Fowler writes:
> > the -u description I quoted was from the solaris mktemp(1)
> > 
> > its not semantics assuming the gnu and solaris documentation describe the implementation
> > 
> > gnu --dry-run prints the name it would use to creat the file
> > but stops short of doing the creat
> > 
> > solaris -u does a creat, unlink, and then prints the name
> 
> In terms of defining what the output means, is there really a
> difference between these two?
> 
> The Solaris one does a modest check to see if the name is unused.  But
> since it doesn't hold onto that newly-created object, anyone else
> could slip in a millisecond after mktemp(1) exit and create that same
> object with nary a complaint observed.

Worse, one might observe the name via readdir on the tmpdir, and then
create a file with the same name after it's unlinked.  It'd be better if
mktemp -u did no more than a stat of name(s) it generates.

Nico
-- 

From casper@holland.sun.com Tue Jun 16 15:02:09 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5GM28XM006392
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 15:02:08 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n5GM1tA4018658
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@Sun.COM>; Wed, 17 Jun 2009 06:02:07 +0800 (SGT)
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 <0KLC0060ZQJH9Q00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Tue, 16 Jun 2009 15:02:05 -0700 (PDT)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLC00E6HQJFF4D0@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Tue,
 16 Jun 2009 15:02:04 -0700 (PDT)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5GM1xri003974; Tue, 16 Jun 2009 23:01:59 +0100 (BST)
Date: Wed, 17 Jun 2009 00:01:59 +0200
From: Casper.Dik@sun.com
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <200906161928.n5GJSKZD003414@penguin.research.att.com>
Sender: casper@holland.sun.com
To: Glenn Fowler <gsf@research.att.com>
Cc: John.Sonnenschein@sun.com, PSARC-ext@sun.com, Rich.Burridge@sun.com,
        roland.mainz@nrubsig.org
Message-id: <200906162201.n5GM1xri003974@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
Status: RO
Content-Length: 315



>presumably solaris -u could fail in the creat/unlink steps that gnu bypasses
>
>the ksh mktemp builtin -u implementation follows the solaris docs

Well, actually:

               if (dounlink)
                        (void) unlink(tmpl);
 

I would need to read the GNU code before I know what it does.

Casper


From gsf@research.att.com Tue Jun 16 19:33:31 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5H2XUWa021368
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 16 Jun 2009 19:33:31 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n5H2XFqn015264;
	Wed, 17 Jun 2009 03:33:27 +0100 (BST)
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 <0KLD0020133QLA00@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 19:33:26 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLD009H833P47B0@nwk-avmta-2.sfbay.sun.com>; Tue,
 16 Jun 2009 19:33:25 -0700 (PDT)
Received: from relay44i.sun.com ([192.5.209.118])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5H2XPaf018948; Wed,
 17 Jun 2009 02:33:25 +0000 (GMT)
Received: from mmp42es.mmp.us.syntegra.com ([160.41.221.11] [160.41.221.11])
 by relay44i.sun.com with ESMTP id BT-MMP-91271; Wed,
 17 Jun 2009 02:31:25 +0000 (Z)
Received: from relay41i.sun.com (relay41i.sun.com [192.5.209.70])
 by mmp42es.mmp.us.syntegra.com with ESMTP id BT-MMP-36617587; Wed,
 17 Jun 2009 02:31:24 +0000 (Z)
Received: from mail-yellow.research.att.com ([192.20.225.112] [192.20.225.112])
 by relay4i.sun.com with ESMTP id BT-MMP-9927408; Wed,
 17 Jun 2009 02:31:24 +0000 (Z)
Received: from penguin.research.att.com
 (penguin.research.att.com [135.207.176.48])	by mail-blue.research.att.com
 (Postfix) with ESMTP id 32898F0E83; Tue, 16 Jun 2009 22:31:24 -0400 (EDT)
Received: (from gsf@localhost)	by penguin.research.att.com
 (8.13.8/8.12.10/Submit) id n5H2VN3U016355; Tue, 16 Jun 2009 22:31:23 -0400
Date: Tue, 16 Jun 2009 22:31:23 -0400
From: Glenn Fowler <gsf@research.att.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
To: Casper.Dik@sun.com, gsf@research.att.com
Cc: John.Sonnenschein@sun.com, PSARC-ext@sun.com, Rich.Burridge@sun.com,
        roland.mainz@nrubsig.org
Message-id: <200906170231.n5H2VN3U016355@penguin.research.att.com>
Organization: AT&T Research
MIME-version: 1.0
X-Mailer: mailx (AT&T/BSD) 9.9 2009-06-09
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.098sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <200906162201.n5GM1xri003974@dm-holland-02.uk.sun.com>
Status: RO
Content-Length: 498


On Wed, 17 Jun 2009 00:01:59 +0200 Casper.Dik@Sun.COM wrote:
> >presumably solaris -u could fail in the creat/unlink steps that gnu bypasses
> >
> >the ksh mktemp builtin -u implementation follows the solaris docs

> Well, actually:

>                if (dounlink)
>                         (void) unlink(tmpl);
>  

> I would need to read the GNU code before I know what it does.

ok, I will comment one more time
I read the docs and not code
and assumed that system calls could not be (void)'d


From sacadmin Wed Jun 17 16:28:55 2009
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 n5HNSt4B009823
	for <psarc@sac.eng.sun.com>; Wed, 17 Jun 2009 16:28:55 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5HNSoPa037673;
	Wed, 17 Jun 2009 17:28:52 -0600 (MDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLE00D0NP83RI00@brm-avmta-1.central.sun.com>; Wed,
 17 Jun 2009 17:28:51 -0600 (MDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLE00364P70Y290@brm-avmta-1.central.sun.com>; Wed,
 17 Jun 2009 17:28:12 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n5HNAdB6003640;
 Wed, 17 Jun 2009 18:10:39 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n5HNAcek003639; Wed,
 17 Jun 2009 18:10:38 -0500 (CDT)
Date: Wed, 17 Jun 2009 18:10:38 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <200906170231.n5H2VN3U016355@penguin.research.att.com>
To: Glenn Fowler <gsf@research.att.com>
Cc: Casper.Dik@sun.com, John.Sonnenschein@sun.com, PSARC@sun.com,
        Rich.Burridge@sun.com, roland.mainz@nrubsig.org
Message-id: <20090617231038.GE1308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <200906162201.n5GM1xri003974@dm-holland-02.uk.sun.com>
 <200906170231.n5H2VN3U016355@penguin.research.att.com>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 1043

[Set to psarc, not psarc-ext.]

On Tue, Jun 16, 2009 at 10:31:23PM -0400, Glenn Fowler wrote:
> ok, I will comment one more time
> I read the docs and not code
> and assumed that system calls could not be (void)'d

I checked the source.

The GNU mktemp(1) -u does an lstat(2) to check that the name does not
exist.

The Solaris mktemp(1) -u removes (unlink(2) or rmdir(2)) the object
created in the process of generating the temp name.

The Solaris behavior is arguably a security bug since it's possible for
others to see what name was generated by constantly listing the contents
of the victim's TMPDIR in the middle of the mktemp operation.  Once the
attacker knows what the name is, and if the attacker can write to the
victim's TMPDIR (e.g., if it's /tmp), then the attacker can create a
symlink with that name, which the victim is likely to follow when
creating an actual object with that name.

Granted, the manpage does say -u is "unsafe."  So maybe it's not a
security bug.

I say: replace Solaris' mktemp with the GNU one.

Nico
-- 

From sacadmin Wed Jun 17 16:50:45 2009
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 n5HNoj85010829
	for <psarc@sac.eng.sun.com>; Wed, 17 Jun 2009 16:50:45 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5HNohDf046756;
	Wed, 17 Jun 2009 17:50:43 -0600 (MDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLE00G03Q8JDG00@brm-avmta-1.central.sun.com>; Wed,
 17 Jun 2009 17:50:43 -0600 (MDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLE003XQQ8JY590@brm-avmta-1.central.sun.com>; Wed,
 17 Jun 2009 17:50:43 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n5HNXD6Z003787;
 Wed, 17 Jun 2009 18:33:13 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n5HNXDUf003786; Wed,
 17 Jun 2009 18:33:13 -0500 (CDT)
Date: Wed, 17 Jun 2009 18:33:13 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: "psarc vs. not psarc-ext" / was: Re: Update GNU coreutils to
 version 7.4 [PSARC/2009/355 FastTracktimeout 06/22/2009]
In-reply-to: <4A397D78.D429335@nrubsig.org>
To: Roland Mainz <roland.mainz@nrubsig.org>
Cc: Glenn Fowler <gsf@research.att.com>, Casper.Dik@sun.com,
        John.Sonnenschein@sun.com, PSARC@sun.com, rich.burridge@sun.com
Message-id: <20090617233313.GG1308@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <200906162201.n5GM1xri003974@dm-holland-02.uk.sun.com>
 <200906170231.n5H2VN3U016355@penguin.research.att.com>
 <20090617231038.GE1308@Sun.COM> <4A397D78.D429335@nrubsig.org>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 349

On Thu, Jun 18, 2009 at 01:34:16AM +0200, Roland Mainz wrote:
> Nicolas Williams wrote:
> > 
> > [Set to psarc, not psarc-ext.]
> 
> Erm... why ? That way nooone from outside Sun can send mails to the
> list...

It was a mistake anyways.  The mails go to the archive, which.. is open
because the case is open (I completely forgot about that; sigh).

From sacadmin Thu Jun 18 01:37:31 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5I8bVBU022009
	for <psarc@sac.eng.sun.com>; Thu, 18 Jun 2009 01:37:31 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n5I8bPF4027381
	for <@sunmail2sca.sfbay.sun.com:PSARC@Sun.COM>; Thu, 18 Jun 2009 01:37:31 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KLF00425EMIBU00@brm-avmta-1.central.sun.com> for PSARC@Sun.COM
 (ORCPT PSARC@Sun.COM); Thu, 18 Jun 2009 02:37:30 -0600 (MDT)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLF0056XEMGUGC0@brm-avmta-1.central.sun.com> for PSARC@Sun.COM
 (ORCPT PSARC@Sun.COM); Thu, 18 Jun 2009 02:37:29 -0600 (MDT)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5I8bOFI015166; Thu, 18 Jun 2009 09:37:24 +0100 (BST)
Date: Thu, 18 Jun 2009 10:37:24 +0200
From: Casper.Dik@sun.com
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <20090617231038.GE1308@Sun.COM>
Sender: casper@holland.sun.com
To: Nicolas Williams <Nicolas.Williams@sun.com>
Cc: Glenn Fowler <gsf@research.att.com>, John.Sonnenschein@sun.com,
        PSARC@sun.com, Rich.Burridge@sun.com, roland.mainz@nrubsig.org
Message-id: <200906180837.n5I8bOFI015166@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <200906162201.n5GM1xri003974@dm-holland-02.uk.sun.com>
 <200906170231.n5H2VN3U016355@penguin.research.att.com>
 <20090617231038.GE1308@Sun.COM>
Status: RO
Content-Length: 1238


>[Set to psarc, not psarc-ext.]
>
>On Tue, Jun 16, 2009 at 10:31:23PM -0400, Glenn Fowler wrote:
>> ok, I will comment one more time
>> I read the docs and not code
>> and assumed that system calls could not be (void)'d
>
>I checked the source.
>
>The GNU mktemp(1) -u does an lstat(2) to check that the name does not
>exist.
>
>The Solaris mktemp(1) -u removes (unlink(2) or rmdir(2)) the object
>created in the process of generating the temp name.
>
>The Solaris behavior is arguably a security bug since it's possible for
>others to see what name was generated by constantly listing the contents
>of the victim's TMPDIR in the middle of the mktemp operation.  Once the
>attacker knows what the name is, and if the attacker can write to the
>victim's TMPDIR (e.g., if it's /tmp), then the attacker can create a
>symlink with that name, which the victim is likely to follow when
>creating an actual object with that name.
>
>Granted, the manpage does say -u is "unsafe."  So maybe it's not a
>security bug.
>
>I say: replace Solaris' mktemp with the GNU one.


Before we replace it with the mktemp from ksh93?

You're complaining about the "unsafe" issue.

My problem with "GNU" problems is that they Usage message is too big.

Casper


From sacadmin Thu Jun 18 01:39:15 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5I8dE97022022
	for <psarc@sac.eng.sun.com>; Thu, 18 Jun 2009 01:39:15 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n5I8dBrS008351
	for <@sunmail2sca.sfbay.sun.com:PSARC@Sun.COM>; Thu, 18 Jun 2009 16:39:13 +0800 (SGT)
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 <0KLF00309EPAK300@nwk-avmta-2.sfbay.sun.com> for PSARC@Sun.COM
 (ORCPT PSARC@Sun.COM); Thu, 18 Jun 2009 01:39:11 -0700 (PDT)
Received: from dm-holland-02.uk.sun.com ([129.156.101.225])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLF002DLEP71UD0@nwk-avmta-2.sfbay.sun.com> for PSARC@Sun.COM
 (ORCPT PSARC@Sun.COM); Thu, 18 Jun 2009 01:39:08 -0700 (PDT)
Received: from holland (room101.Holland.Sun.COM [10.16.117.40])
	by dm-holland-02.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id n5I8d3tX015657; Thu, 18 Jun 2009 09:39:03 +0100 (BST)
Date: Thu, 18 Jun 2009 10:39:03 +0200
From: Casper.Dik@sun.com
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
 FastTracktimeout 06/22/2009]
In-reply-to: <4A397CF9.4C52F6E4@nrubsig.org>
Sender: casper@holland.sun.com
To: Roland Mainz <roland.mainz@nrubsig.org>
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        Glenn Fowler <gsf@research.att.com>, John.Sonnenschein@sun.com,
        PSARC@sun.com, Rich.Burridge@sun.com
Message-id: <200906180839.n5I8d3tX015657@dm-holland-02.uk.sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200906160755.n5G7tUaB008360@dm-holland-02.uk.sun.com>
 <20090616162522.GS1308@Sun.COM>
 <200906161815.n5GIFkA3020919@dm-holland-02.uk.sun.com>
 <4A37E367.A3802F82@nrubsig.org>
 <200906161831.n5GIVsBl024461@dm-holland-02.uk.sun.com>
 <200906161839.n5GIdEa7002095@penguin.research.att.com>
 <200906161846.n5GIkB2q027563@dm-holland-02.uk.sun.com>
 <200906161928.n5GJSKZD003414@penguin.research.att.com>
 <200906162201.n5GM1xri003974@dm-holland-02.uk.sun.com>
 <200906170231.n5H2VN3U016355@penguin.research.att.com>
 <20090617231038.GE1308@Sun.COM> <4A397CF9.4C52F6E4@nrubsig.org>
Status: RO
Content-Length: 332


>Erm... as said already: We've added that to the list for the
>ksh93-integration update3 ARC case - that way we bet _both_ GNU and BSD
>compatibilty and get it as builtin command in Indiana's /usr/bin/sh, too
>(which is a significant performance benefit).


What is the performance when you don't use ksh93 as your shell?

Casper


From iszczesniak@gmail.com Fri Jun 19 05:43:02 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n5JCh1Hr004032
	for <psarc-ext@sac.sfbay.sun.com>; Fri, 19 Jun 2009 05:43:02 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n5JCgeoC025931;
	Fri, 19 Jun 2009 20:42:57 +0800 (SGT)
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 <0KLH00401KNJGZ00@nwk-avmta-1.sfbay.Sun.COM>; Fri,
 19 Jun 2009 05:42:55 -0700 (PDT)
Received: from sca-ea-mail-1.sun.com ([192.18.43.24])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KLH002XQKNJGBB0@nwk-avmta-1.sfbay.Sun.COM>; Fri,
 19 Jun 2009 05:42:55 -0700 (PDT)
Received: from relay42i.sun.com ([192.5.209.72])
	by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n5JCX4aF011430;
 Fri, 19 Jun 2009 12:42:54 +0000 (GMT)
Received: from mms49es.mms.us.syntegra.com ([160.41.221.232] [160.41.221.232])
 by relay42i.sun.com with ESMTP id BT-MMP-246325; Fri,
 19 Jun 2009 12:42:54 +0000 (Z)
Received: from relay43i.sun.com (relay43i.sun.com [192.5.209.74])
 by mms49es.mms.us.syntegra.com with ESMTP id BT-MMP-40337051; Fri,
 19 Jun 2009 12:42:54 +0000 (Z)
Received: from mail-fx0-f222.google.com ([209.85.220.222] [209.85.220.222])
 by relay4i.sun.com with ESMTP id BT-MMP-5839155; Fri,
 19 Jun 2009 12:42:54 +0000 (Z)
Received: by fxm22 with SMTP id 22so2016042fxm.8 for <multiple recipients>;
 Fri, 19 Jun 2009 05:41:56 -0700 (PDT)
Received: by 10.204.55.15 with SMTP id s15mr2566767bkg.53.1245415316512; Fri,
 19 Jun 2009 05:41:56 -0700 (PDT)
Date: Fri, 19 Jun 2009 14:41:56 +0200
From: "I. Szczesniak" <iszczesniak@gmail.com>
Subject: Re: Update GNU coreutils to version 7.4 [PSARC/2009/355
	FastTracktimeout 06/22/2009]
In-reply-to: <4A36CCF1.3080700@sun.com>
To: Rich Burridge <Rich.Burridge@sun.com>
Cc: Roland Mainz <roland.mainz@nrubsig.org>,
        John Sonnenschein <John.Sonnenschein@sun.com>, PSARC-ext@sun.com
Message-id: <cd45720b0906190541q6c46abefsd23b6619134cbbd7@mail.gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
 s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references
 :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding;
 bh=KRUppTcp3zB3yFzWdeudJROrnKzG2TuDUgxVaBCP/dU=;
 b=K/JFd+aCH1Omr5pR1/unME+U7SmSMwIllA0Jh6aqP9LQYwIhZAnIGaMkYI5TEWUIdb
 j5wrFW2emBwGebxzXJuQJMAV0xY8rPYhtUf/LfNtYBZHsgmXGawemWD88t6Inb9K9A3p
 0GwlpKJPSoqFPyi9+ppzbcq/ICrwiFrqJ3KGo=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type:content-transfer-encoding;
 b=uYpS8nwT9ovfM9zkIAOtURQMYa9qAODD7Bh+lN5v0cfvIFX9BZ/vE5M6J3B5BPm277
 /DbZskFz4uYC0SJQblSGFbJm5rdSl2lxKKn0oIXVc1VGH666UrDseE0o8j3zvFHQDiyk
 iWm/qY/22TM1N9xWIW247lBzQpmmRkOvAL3y8=
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=0.0/5.0, scanned in 0.065sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4A36B1B5.7050408@sun.com> <20090615212653.GU1308@Sun.COM>
 <4A36C01E.70119FAB@nrubsig.org> <4A36CCF1.3080700@sun.com>
Status: RO
Content-Length: 839

On 6/16/09, Rich Burridge <Rich.Burridge@sun.com> wrote:
> Roland Mainz wrote:
>
> > Nicolas Williams wrote:
> >
> >
> > > On Mon, Jun 15, 2009 at 01:40:21PM -0700, Rich Burridge wrote:
> > >
> > >
> > > >        Between 6.7 and 7.4, the following new commands were
> introduced:
> > > >
> > > >
> > >
> >
> > Erm... where can I find the full ARC case ? Somehow I never got the
> > email for this... ;-(
> >
> >
>
>  http://arc.opensolaris.org/caselog/PSARC/2007/048/
>
>
> >
> > > /usr/bin already has an mktemp.  How does it differ from the GNU
> > > version?  Ah, there's an option conflict, sadly (-u is "--dry-run" in
> > > GNU, but "unsafe operation" in Solaris).
> > >
> > >
> >
> > BTW: The next ksh93-integration update will cover /usr/bin/mktemp and
> > add the non-conflicting BSD+GNU options.
> >
> >
>
>  Excellent.

+1

Irek

