From nobody Mon Jan 24 18:38:40 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E0538197DAD3 for ; Mon, 24 Jan 2022 18:38:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjJf84vXVz4t82 for ; Mon, 24 Jan 2022 18:38:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 849011B046 for ; Mon, 24 Jan 2022 18:38:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20OIcefE024463 for ; Mon, 24 Jan 2022 18:38:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20OIceXx024462 for bugs@FreeBSD.org; Mon, 24 Jan 2022 18:38:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261437] outdated mktemp(1) examples Date: Mon, 24 Jan 2022 18:38:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: wosch@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643049520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xCjv4pGkYtDKrZbsUGZ7OyRTnIUAyOtjQYSb+01Hy34=; b=krpkrAceE2TDOEq/hYmU1aVWfMZh5z2NfYfoFWGknn89a9FyPfGqv85KODH17qkUWnEL+e 6DtQucfijfIBjOLSo2c04UtGa7PMMQXegTdIzVWY11zFePwmAL/iFg25iQ36dTIbLVxUU1 0xFgjkHSd6Hq4/hNILOstycbfx99f3+Q9AmZs3Yq+Pbij+smbSwIh7lbwHmZB+kOUt0bMO OTMR4ERtWpj8ENzI1ESrphHD8GUXW0foJQcbUOcZ9J/Y9bMytIyp/CgtLYT24+Bw0ZUiUS XSFmpQMSF2mqv8BoDp+qRx3bb9Y02+xcpYR1oSIE3IoDiXogQmwjzGEoj2nWkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643049520; a=rsa-sha256; cv=none; b=LIDXvXLFWvwniS6A/+HwRGSGNdRCVF91v1gVtGigSvrcstKvE+jFWRpd6hXTy9mxgotQVr FAvWIdcoFLhPplrIGzXRoGq+fUUCEHmO/8qjfefdLGDAls54HV5J9+k5kO3wvgFGs3W7w/ BVWlc8jF7hTlTl9WJyLrg2gjWcss0hyUA234JIL1wDF27lj8rZGqXkglgET7Jv1ctr++kE ctL+wVTY0Ff5k+PvACuQWfPyUPf5aCN7OKQ8s9qLl1t/zwCsrjR9eQWIq90t3zSbi8e0ZU SJCY5t4ty4t525/D3n+1dAh8bRY5de908MPPkRw6UBL650nQmt5+s19xuv4mCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261437 Bug ID: 261437 Summary: outdated mktemp(1) examples Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: wosch@FreeBSD.org CC: doc@FreeBSD.org The manual page for mktemp(1)=20=20 https://man.freebsd.org/mktemp/1 has examples for temporary filenames as /tmp/temp.XXXX TMPFILE=3D`mktemp /tmp/${tempfoo}.XXXXXX` || exit 1 Using 4 or 6 X was probably ok 20 years ago, but not anymore. Best practice= is to use 10 X. Given that our users often copy & paste examples from our manu= al pages we should update the documentation. PS: same for mkstemp(3) https://man.freebsd.org/mkstemp/3 --=20 You are receiving this mail because: You are the assignee for the bug.=