From nobody Mon Jan 24 18:38:40 2022 X-Original-To: doc@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 E050F197D9F5 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 4JjJf84JBKz4t81 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 74C131B045 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 20OIcerP024459 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 20OIceKZ024458 for doc@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: doc@FreeBSD.org Subject: [Bug 261437] outdated mktemp(1) examples Date: Mon, 24 Jan 2022 18:38:40 +0000 X-Bugzilla-Reason: CC 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: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@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=apCRwKal9V+rVd30RFS52g6b2f53iYNkHU8+/nnAGs0=; b=by3LlCFQEaqNsSfGpCDa7PDPI0mKQn7qa8LIqDw1oReflX8MLrWJG9ayP765e1qrDP0mQU yvCs1300jZneFLYkrKYjAXQGfLhUnlkmmMcLM6WemmGGDusPEPyr9XKfm43UA9Nl7XVOKq da+4RlXwymy22G/WEtTTYymDg1Vhi+aNcNypZ0+jSQUc+kPfDYZto9WZaxfYPh/u4JhGJw knIlSt8G75nkw7hFv3+pKAwxUkFhG9BdGmGb4Ji0AqTxm43/0YXcczL88tH/EMmncqoW5Q D4MxxCm+KR+5Kpvu0TYlZFiQ5OJtSWGITzIAtzQj+SljvM5g1sKIXutgDk7S6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643049520; a=rsa-sha256; cv=none; b=popjygkeIOelqvgPHDck5maoLgKO6JBfV8fiRACP/I65jmqgOWdpL/QNEkXW+XSP9TIxPr O3pKy3ClyD2+f8hiQ4KSWi91zGPdFpEG8l0JkvPdJQ25hn2TSYq3IXSS0XtL/KmHTFiGTi +AiqDUY8QIstC3d62j3GE8mRdaELeNTHfLAeC+ANA9ZxqH157hLxQZ0hRWDKCc+ZAJ97Hi VmcU9KUBNrJkn60egcc9383OgVpD9kcb0DLD/82omXxOkxu8a1+65D7pgGGBdb1JU3mk8S BDQgVSioIgopG8PVmWTPs9OH67nFqO0T1BoWhQ6bnr/m4J/q7WmXNwsBmYA25g== 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 on the CC list for the bug.=