From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [50.116.15.146]) by inbox.vuxu.org (Postfix) with ESMTP id BCE1026AE7 for ; Thu, 27 Jun 2024 11:47:20 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id C477943DB3; Thu, 27 Jun 2024 19:47:15 +1000 (AEST) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) by minnie.tuhs.org (Postfix) with ESMTPS id 3793C43DB2 for ; Thu, 27 Jun 2024 19:47:09 +1000 (AEST) Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2eaae2a6dc1so221291fa.0 for ; Thu, 27 Jun 2024 02:47:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719481627; x=1720086427; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=om/CHf13D6/yUxz5ozPQYzftFY08QCCUNaeRrDrKzuo=; b=i7Z/MmM7US9T0HFc/+4HpzWwRwOasJkDaQvjF4+s82/yHb3SvN7qtnM6e93vZEFNBm dFsPKyKnI4HVzoZ6vRKwyDIAtLWzo5F1G11JhaGUTtXbcjIQthPFYxN3vqRZWjBGoqRG hD4Hho6eZ6XinhNS77pbX9DIfrv+kqbA2BqFg+72Dgr1w+3a1kxXR3+U2K6jcC5JCVRB VivNlx3kKvLula1VMspkLKPQIoWBsRjc7zujeVK7uhu2R01ciCowemR3lsmTWW8ZvxzQ zS8P4YSesVOnujMuh8SZhtuSLpMowlagUI++9qeNXC8LVV0tqwaD+cTdxba4BStVVLQc ipfg== X-Gm-Message-State: AOJu0Yy8h4Gf/zWtODVznohPiDW9r+PywEmhWeOZzvwDeSZquDulGh8w fhoYUGyJqeLLpuwU/qWTmKCuIZWSebdaD/r8EI/xBEPH2HDElM5cHJZQxg== X-Google-Smtp-Source: AGHT+IHwZxjndAYrP+k+RgNrmoy0GI/C06d3oHY/OJ6mPJ3yqVchQsjA8ywcK2HmjaXuV8Bgc9qeqg== X-Received: by 2002:a2e:b687:0:b0:2ec:57c7:c735 with SMTP id 38308e7fff4ca-2ec5b31d5fbmr94049001fa.35.1719481627000; Thu, 27 Jun 2024 02:47:07 -0700 (PDT) Received: from hera.home.vuxu.org (hera.home.vuxu.org. [2a0e:46c4:2400:1ea4:fe5c:eeff:fe11:5f50]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42564b68511sm18245075e9.19.2024.06.27.02.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 02:47:06 -0700 (PDT) Received: from localhost (hera.home.vuxu.org [local]) by hera.home.vuxu.org (OpenSMTPD) with ESMTPA id 7aa145a3; Thu, 27 Jun 2024 09:47:05 +0000 (UTC) From: Leah Neukirchen To: ron minnich In-Reply-To: (ron minnich's message of "Wed, 26 Jun 2024 20:29:27 -0700") References: Date: Thu, 27 Jun 2024 11:47:05 +0200 Message-ID: <87zfr6emzq.fsf@vuxu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Message-ID-Hash: Y2TR7HYSYQA3NJJHNHMH34VBPNS2WW7I X-Message-ID-Hash: Y2TR7HYSYQA3NJJHNHMH34VBPNS2WW7I X-MailFrom: chneukirchen@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: another OSX 100% less Unix List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ron minnich writes: > I have a directory, t: > ronsexcllentmbp:t rminnich$ ls -li > total 0 > 23801442 -rw-r--r-- 1 rminnich wheel 0 Jun 26 20:21 a > 23801443 -rw-r--r-- 2 rminnich wheel 0 Jun 26 20:21 b > 23801443 -rw-r--r-- 2 rminnich wheel 0 Jun 26 20:21 c > > note that b and c are the same inode. > > let's make a cpio. > > ronsexcllentmbp:t rminnich$ cpio -o >../t.cpio > a > b > c > ^D > 1 block > > what's in it? > ronsexcllentmbp:t rminnich$ cpio -ivt < ../t.cpio > -rw-r--r-- 1 rminnich wheel 0 Jun 26 20:21 a > -rw-r--r-- 2 rminnich wheel 0 Jun 26 20:21 b > -rw-r--r-- 2 rminnich wheel 0 Jun 26 20:21 c link to b > > "c link to b"? wtf? Who thought that was a good idea? because ... > ronsexcllentmbp:t rminnich$ touch 'c link to b' > ronsexcllentmbp:t rminnich$ ls -l > total 0 > -rw-r--r-- 1 rminnich wheel 0 Jun 26 20:21 a > -rw-r--r-- 2 rminnich wheel 0 Jun 26 20:21 b > -rw-r--r-- 2 rminnich wheel 0 Jun 26 20:21 c > -rw-r--r-- 1 rminnich wheel 0 Jun 26 20:22 c link to b This is a feature of libarchive (cpio since FreeBSD 8), note that without -v it prints the actual names as tools expect it. (Similarly, symlinks are printed as "c -> b".) More fun is that it's not able to extract only "c", even tho the ASCII cpio format stores hard links by duplicating the data... -- Leah Neukirchen https://leahneukirchen.org/