Skip to content

[linux] mktemp template expansion: pid-nanos-counter suffix instead of coreutils random 6-char [A-Za-z0-9] run #232

Closed

Description

@caomengxuan666

Linux build (wt4/linuxrun), GNU coreutils mktemp baseline.

Repro

m=$(mktemp /tmp/rbtpl.XXXXXX); echo "${m##*rbtpl.}"

Expected (GNU): 6 random alnum chars, e.g. TnVGKu (coreutils mktemp(1): each X replaced from [A-Za-z0-9] via random).
Actual (rubash): <pid>-<nanos>-0, e.g. 17070-1790505061684966322-0 - visible in every temp path (also seen in rubash's own internal temp names), leaks pid/timing and breaks scripts that parse/validate mktemp output shape.

Bite-level evidence in suite artifacts: every /tmp/rubash_exec.* GNU-vs-rubash stderr line pair differs in the dirname for this reason alone (target/wslrun/results/p0_execbit.err.diff).

Owning rubash code: the mktemp engine tool (external file builtins family); GNU anchor: coreutils mktemp try_tempname_len/random name generation (not bash C source - this is a coreutils port surface).

Activity

  1. added
    bug
    on Sep 27, 2026
  2. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已修复并合入 master(commit b2e41b4e,lane wt4/linuxfix;GNU 引用与验证见提交信息:Linux 真机 WSL 双壳验证、24 套件平价 17→19)。感谢报告!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions