Original report was about http://www.mktemp.org/ packaged on debian.
That version of mktemp when called with not safe template (without X)
created file with not-random name.

Now it replaced with coreutils version of mktemp and here documented
minimum number of `X' in template and shows correct error message if
template not safe for mktemp

There still small issue with compatibility, that can be documented, but as
Ivan says mktemp is not part of POSIX, so I think bug can be closed.

2013/10/31 Olivier Mehani <[email protected]>

> Package: coreutils
> Version: 8.21-1
> Followup-For: Bug #518796
>
> Dear Maintainer,
> *** Please consider answering these questions, where appropriate ***
>
>    * What led up to the situation?
>
> mktemp(1) says: “--suffix=SUFF append  SUFF  to  TEMPLATE.   SUFF must
> not contain slash.  This option is implied if TEMPLATE does not end in
> X.”
>
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
>
> $ mktemp test
>
>    * What was the outcome of this action?
>
> mktemp: too few X's in template ‘test’
>
>    * What outcome did you expect instead?
>
> The same as mktemp test.XXXXXX:
> test.RACB3X
>
> This is probably an upstream bug.
>
> *** End of the template - remove these lines ***
>
>
> -- System Information:
> Debian Release: jessie/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.10-2-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages coreutils depends on:
> ii  libacl1      2.2.52-1
> ii  libattr1     1:2.4.47-1
> ii  libc6        2.17-93
> ii  libselinux1  2.1.13-2
>
> coreutils recommends no packages.
>
> coreutils suggests no packages.
>
> -- no debconf information
>
> --
> To unsubscribe, send mail to [email protected].
>



-- 
С уважением, Кудреватых Александр

Reply via email to