From nobody Sat Feb 17 15:28:53 2024 X-Original-To: freebsd-questions@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 4TcXlP2qjMz5BHtW for ; Sat, 17 Feb 2024 15:29:05 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from ns.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "discoveriesinwood.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXlM5blsz4fth for ; Sat, 17 Feb 2024 15:29:03 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org; dmarc=none Received: from [192.168.151.122] (breakaway.dreamchaser.org [192.168.151.122]) by ns.dreamchaser.org (8.17.1/8.17.1) with ESMTP id 41HFSrfx043437 for ; Sat, 17 Feb 2024 08:28:53 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Message-ID: Date: Sat, 17 Feb 2024 08:28:53 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: FreeBSD Mailing List Reply-To: freebsd@dreamchaser.org From: Gary Aitken Subject: hard link pointing to itself? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: inspected by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Sat, 17 Feb 2024 08:28:53 -0700 (MST) for IP:'192.168.151.122' DOMAIN:'breakaway.dreamchaser.org' HELO:'[192.168.151.122]' FROM:'freebsd@dreamchaser.org' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Sat, 17 Feb 2024 08:28:53 -0700 (MST) X-Rspamd-Queue-Id: 4TcXlM5blsz4fth X-Spamd-Bar: - X-Spamd-Result: default: False [-1.72 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; NEURAL_HAM_SHORT(-0.89)[-0.890]; NEURAL_HAM_LONG(-0.65)[-0.650]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; TO_DN_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org] running 13.2-release, created a tar archive, went to extract on another 13.2-release system, and got several messages of the form: $ tar xf tmp.tar path-to-file/filename.jpg: Skipping hardlink pointing to itself: path-to-file/filename.jpg: File exists If I go to the source directory on the original system and do: find . | grep filename.jpg I see only one file. Any idea how this file could have been created? I'm pretty sure the original was a lower-resolution file written from gimp, but that wouldn't have been a hard link. There's a reasonable chance I tried to create a hard link at some point, but I don't see a reference to it. Suspiciously, the tarball had several of these, and quit after reporting a few on extraction. How does one tell it's a hard link? I can get the inode number using ls -il, but that doesn't tell me much regarding its being a hard link when there is only one file. Assuming I don't want to destroy the file, any suggestions on how to fix it? Copy to temp, remove/rename old file, rename? Gary