Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Hongyi Zhao Newsgroups: gnu.bash.bug Subject: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' Date: Tue, 28 Jul 2020 20:19:15 +0800 Lines: 24 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1595938772 14794 209.51.188.17 (28 Jul 2020 12:19:32 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=JrSRnViV3jfZ8COaJ8vH6CXKVssq56ggjoC8SbEaW6Q=; b=NMOVa1h66VAYEPG8Jp2DpUTE3Za3tciQ36JgiD2VM8C/o17olCfTmJ4dP3fi+qETYn MwCAE47xKvNkB04355SKi0UqcVfgQO3EcHAtrJk2ZWRS0wd36PrJAEgqK9nI820JRXbg THZlpDwq1DFpSn0mO+6ECjaQeO/kDYyAAmTWEoe7xEfFZiyHHamwE4JJ5/8P4dgDqEWC 1EIZuheAby3m5uuh8Fvy5P4ABvU0GrA0UoQNHSl6s3sADq5jqUq89YR62Txd2ACNFXlp bv681SoQHWKOC3dB3G/ek6vZvXuM93QpOKs3+RlGTpVdY10SY3vaN2iuQE0wfhPQWF/J Xz8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JrSRnViV3jfZ8COaJ8vH6CXKVssq56ggjoC8SbEaW6Q=; b=pCW6b9qFIk1g+/A+maOSuu89i5VjyftWXA/bL0PJTH5/GlXcXhXUW5fJ43WaglTnOv SvVuTWIwtkyJEBywKOZZQ01jbOHdafR9+RKCsw9rMjx47Kdp0M3At8z4fVS+6BCsmWO1 kIKSu9Yez5j0xvE0Zoy+Lx1/eu/fu8S91O28kVrhErjFCgYIEcb8ZF8oVJW1UZuAwMte yX1ECr07XPLrYaWJiBWSItRZLcL3OclQBuaq8qlw9lsiyrdmi5Zj7kBPBn8eQhoFuvuK 0po9Jm0B4he9w/trLA60KzXpKu9fJPTECXcWrQCq3vZWf/5A2dh6hWrEwouWNlAuEp/b oLNw== X-Gm-Message-State: AOAM533m/RlaXV3EaFjYQnwOsQQdcxUqc29gAMvOZOneWLhlcDAzojOi UzDMqfaEFTlRgo2uWk3S8hX/wdd67M6UqCEDqg+XDxdbl0DRwA== X-Google-Smtp-Source: ABdhPJynJa+qLOb9QVEE1Rm6fy6BKKU2ejCz0hRTk3yODoDSGJI8BiONyXdAIs+UxLlAMdvZC96kBFN3kG89Qe+OtUE= X-Received: by 2002:ab0:486d:: with SMTP id c42mr19900663uad.64.1595938766908; Tue, 28 Jul 2020 05:19:26 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::92d; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x92d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:16633 Hi, On Ubuntu 20.04, I try to compile the git master version of bash with the followin steps: $ sudo apt-get build-dep bash $ git clone https://git.savannah.gnu.org/git/bash.git bash.git $ cd bash.git $ ./configure $ make -j44 [...] /usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname': /home/werner/Public/repo/git.savannah.gnu.org/git/bash.git/lib/sh/tmpfile.c:152: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' [...] Any hints for fix this warning? Regards -- Hongyi Zhao