From nobody Tue Dec 10 18:37:46 2024 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 4Y76t22GD4z5gT89 for ; Tue, 10 Dec 2024 18:37:46 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y76t214RKz4Cxq for ; Tue, 10 Dec 2024 18:37:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733855866; 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=GRxgWytVa3EWrfjEWi0eq+2aVkGgFg+t1vNslUj/DWA=; b=VT88rLXNTXjhiWSFvkwLyNd+HAqdgoDM5Lu6l0N1d5aRprsSTIsFONxaZcuXtrU0Z9JT0X Y4c5IPJph0E20LmyG0mM8So9l/5Yz/iyHuhvZdrSH02sNfnXL75r0sSa8MNjGBJ45MEf7Y nZPsgVmYSQqurM9zUWG1M6wKg3QDhDI3Wv08By2ECMeyKw/M0lHL4LbkKfIBFGsVPtppus SZpaiQy25kZsgOc79YM6ag+LOkOgT8fzcJ1eg/pK2fkYsXbpqxr8j8PZ1QriOlDr7sblkw bMhb5aF2EuR6eGJMDXlizl4Gc7+XVT1+gwF8tiO/WnA44SZDRLyn9ezuCiZqsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733855866; a=rsa-sha256; cv=none; b=kKKsn0DBdwR2rZBzrNlsRyE+kzaLzHS5lvuegMYDE1LwC167foIjcMbMXNmQ6roByqJOag 9VhGFrHhQ5ciq5O2RcaQI54Kt+wsWMMYjcUssMnVUg7wwTDsYeetH16cDpdlq6fxY8Atmu w1H7d8Hms+zmdG1TjwPW//M4yyn5xBmTyEqkIXAjhNf/E9RUwjH9oUG3pgbLCIYfjnNdVl VApYTiJ9Z+DMq4e/rNeRFKSZAnt92dXAJGLozM6Gju4RE4yLBF7mqazpbZ6X/Y9g88R3bF /FYp+BQqkVqbRbi82nbUQ53OWv4Loj1DTvLSnbdm/o+9Bv+YbBHd3mQHCxGESw== 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 4Y76t20LpLzZtl for ; Tue, 10 Dec 2024 18:37:46 +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 4BAIbjJC023535 for ; Tue, 10 Dec 2024 18:37:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BAIbjOC023534 for bugs@FreeBSD.org; Tue, 10 Dec 2024 18:37:45 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 283238] makefs: cd9660 produces conflicting short paths Date: Tue, 10 Dec 2024 18:37:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@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 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283238 Bug ID: 283238 Summary: makefs: cd9660 produces conflicting short paths Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org Rock ridge extensions add support for longer path and directory names than vanilla iso9660, but iso9660 data structures still need to be populated with unique, shortened versions of the longer names. makefs has cd9660_handle_collisions() to find conflicting entries which uses cd9660_rename_filename() to choose a new name when a conflict is found. Thi= s is called for both file and directory names (and chooses a new name to resolve= the conflict for both file and directory names) but the emitted data still has a conflict. Demonstration: ``` $ mkdir -p test9660/this-is-a-directory-with-a-long-common-prefix-1 test9660/this-is-a-directory-with-a-long-common-prefix-2 $ makefs -t cd9660 -o rockridge test.iso test9660/ $ isoinfo -p -i test.iso Setting input-charset to 'UTF-8' from locale. Path table starts at block 18, size 86 1: 1 14=20 2: 1 15 THIS_IS_A_DIRECTORY_WITH_A_LON 3: 1 16 THIS_IS_A_DIRECTORY_WITH_A_LON ``` --=20 You are receiving this mail because: You are the assignee for the bug.=