From nobody Tue Sep 17 16:38:32 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 4X7SCF4QTBz5Vc7Z for ; Tue, 17 Sep 2024 16:38:33 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X7SCF2PQkz4y30 for ; Tue, 17 Sep 2024 16:38:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726591113; a=rsa-sha256; cv=none; b=PfsrT0KxwhVmB59JCSSbuGKFYoxQYez2VseX1OZhD0MMlTJqjlM3W692I9Xg6r5qDOaiIm /F7gcJF6AMb8BgwQq3C3lAczr3Zu0wIQ0RlolV1k8rSLXkgV9RhSt8cs6RQdFqeSW8aBf3 8vk2dJqR2UJKotDwIe3ygcfK5kb80Ish24Wftdpgxrm0kJDFByp4rFUEw4y+tX5S5CoQbV /BSbQyGDVCYOWbCZxuRcqf+RLb2BNp5HLDf0Uv8sBqjr/PJcbEJ4Zz76lDcA1N6mZ5vW1K TZP412uLxmwH/IYI9acvObshSWhTmVS0C1BSG07M0peH/W2faBhz+AqesCcTNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726591113; 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: in-reply-to:in-reply-to:references:references; bh=Qu2p3AdciFcMSCKtCSfXNlQOpTmGXvsdsP9+suZNbHE=; b=IQ6rnJXr1une6KecrxJtoSf9HAjFNS8x7nizbTfQxxww2F5gUk1SNKJmx3kFneW//860I4 oKl+QbB4CDphbXv8tAJ8KIPrDxeg8+Ub7Vs2xQoYDjfcNY9sN4F5Sj/pj9hv5uY8TG9g3S OllPVKI+JrE8JSrEd9D6Zy5DyQrF+Luo4zY2P8zePUNnShusvi/QJFMkQFVmdRbUz3W8AO H6hPa3CYX95b7wQwx+4brxjfLdoSLQvIy6nyplov9ld/PqaRDQDItKwpxpi1VvUEHlbAfg zwr3T9cde64hnvyyqOgeH4//viQ1XQ8sqWTi8NYpqPk8VjM3On9esY6P9fM3+A== 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 4X7SCF04lpzmBw for ; Tue, 17 Sep 2024 16:38:33 +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 48HGcW8n014494 for ; Tue, 17 Sep 2024 16:38:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48HGcWIC014492 for bugs@FreeBSD.org; Tue, 17 Sep 2024 16:38:32 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 228069] tar(1) fails to append newer files only (-u, --update), but always appends all files (like -r). Date: Tue, 17 Sep 2024 16:38:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: titus@edc.ro X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D228069 --- Comment #4 from titus m --- There is another problem. If tar needs to strip the first / in the file path it seems it wont detect = that the file is already present in the archive ##################################################################### [19:33:12] [ns!titus]~ $tar -cvf a.tar --format=3Dpax /etc/passwd /etc/ho= sts /etc/motd tar: Removing leading '/' from member names a etc/passwd a etc/hosts a etc/motd [19:33:29] [ns!titus]~ $tar -uvf a.tar /etc/passwd /etc/hosts /etc/motd tar: Removing leading '/' from member names a etc/passwd a etc/hosts a etc/motd ########## now trying from / so it wont have to remove first / ##### [19:33:48] [ns!titus]~ $tar -uvf a.tar -C / etc/passwd etc/hosts etc/motd [19:33:59] [ns!titus]~ $tar -uvf a.tar -C / etc/passwd etc/hosts etc/motd ########################################################################## [19:34:00] [ns!titus]~ $tar tf a.tar etc/passwd etc/hosts etc/motd etc/passwd etc/hosts etc/motd --=20 You are receiving this mail because: You are the assignee for the bug.=