[9032] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 7.3P: mktemp(3)

daemon@ATHENA.MIT.EDU (mhpower@Athena.MIT.EDU)
Mon Mar 2 12:28:04 1992

From: mhpower@Athena.MIT.EDU
To: bugs@Athena.MIT.EDU
Date: Mon, 02 Mar 92 12:27:48 EST

System name:            oliver
Type and version:       MVAX-II 7.3P (1 update(s) to same version)
Display type:           QVSS

What were you trying to do?

        Create some temporary file names using mktemp(3), and then
        open the files.

What's wrong:

        The man page says that the XXXXXX in the template (I used
        /tmp/lose.XXXXXX) "are replaced with the current process id
        and a unique letter". However, the first file name generated
        was /tmp/lose.019997 (0 is not a letter). Also, the man page
        does not specify what happens after the 26th name. For calls
        after the 26th, the template appears to be replaced by the
        26th unique name (/tmp/lose.y19997), and the returned value
        of mktemp appears to be /.

What should have happened:
	
        The unique letters should have ranged from a to z, not 0 to y.
        The returned values should have matched the template in all
        cases; / should not have been returned.

Please describe any relevant documentation references:

        mktemp(3)

home help back first fref pref prev next nref lref last post