Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-25 Thread enh via Toybox
On Mon, Jul 25, 2022 at 3:12 PM Rob Landley wrote: > On 7/25/22 11:48, enh wrote: > > > Is there a portable way to determine filesystem type, though? > df . > > doesn't say, > > > I have to look in /proc/mounts and I doubt mac has that? > > > > > > $ grep -w

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-25 Thread Rob Landley
On 7/25/22 11:48, enh wrote: > >     Is there a portable way to determine filesystem type, though? df . > doesn't say, > >     I have to look in /proc/mounts and I doubt mac has that? > > > >     $ grep -w "^$(df . | tail -n 1 | toybox cut -DF 1)" /proc/mounts | > toybox >

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-25 Thread enh via Toybox
On Mon, Jul 4, 2022 at 10:38 PM Rob Landley wrote: > On 7/4/22 13:08, enh wrote:> On Mon, Jul 4, 2022 at 3:14 AM Rob Landley > wrote: > > On 6/27/22 14:40, enh wrote: > > > On Sat, Jun 25, 2022 at 3:45 PM Rob Landley > > > The problem with the mac tar test is even though

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-08 Thread Rob Landley
On 7/4/22 15:19, David Seikel wrote: > On 2022-07-04 05:21:21, Rob Landley wrote: >> It's a pity there isn't a mac dev environment I can ssh into. I can can >> think of >> three Linux ones off the top of my head that are still up which I probably >> have >> credentials for. (Make that five.

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-05 Thread Rob Landley
On 7/5/22 00:45, Rob Landley wrote: >> wouldn't it make more sense to use one of the low-numbered groups that's the >> same on both though, rather than skip? > > Grrr... trusting "root" to be there seemed as universal as you could get. > Slowaris had "root". AIX had "root". I very vaguely recall

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-04 Thread Rob Landley
On 7/4/22 13:08, enh wrote:> On Mon, Jul 4, 2022 at 3:14 AM Rob Landley wrote: > On 6/27/22 14:40, enh wrote: > > On Sat, Jun 25, 2022 at 3:45 PM Rob Landley >     >     The problem with the mac tar test is even though it's easy > enough to > >     find what > >     >     

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-04 Thread David Seikel
On 2022-07-04 05:21:21, Rob Landley wrote: > It's a pity there isn't a mac dev environment I can ssh into. I can can think > of > three Linux ones off the top of my head that are still up which I probably > have > credentials for. (Make that five. Probably more if I thought about it.) But >

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-04 Thread enh via Toybox
On Mon, Jul 4, 2022 at 3:14 AM Rob Landley wrote: > On 6/27/22 14:40, enh wrote: > > On Sat, Jun 25, 2022 at 3:45 PM Rob Landley > > wrote: > > > > On 6/24/22 19:35, enh wrote: > > > On Thu, Jun 23, 2022 at 11:48 PM Rob Landley > >

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-07-04 Thread Rob Landley
On 6/27/22 14:40, enh wrote: > On Sat, Jun 25, 2022 at 3:45 PM Rob Landley > wrote: > > On 6/24/22 19:35, enh wrote: > > On Thu, Jun 23, 2022 at 11:48 PM Rob Landley > > >>

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-06-27 Thread enh via Toybox
On Sat, Jun 25, 2022 at 3:45 PM Rob Landley wrote: > On 6/24/22 19:35, enh wrote: > > On Thu, Jun 23, 2022 at 11:48 PM Rob Landley > > wrote: > > > > On 6/22/22 20:02, enh wrote: > > > On Wed, Jun 22, 2022 at 1:52 PM Rob Landley >

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-06-25 Thread Rob Landley
On 6/24/22 19:35, enh wrote: > On Thu, Jun 23, 2022 at 11:48 PM Rob Landley > wrote: > > On 6/22/22 20:02, enh wrote: > > On Wed, Jun 22, 2022 at 1:52 PM Rob Landley > > >>

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-06-24 Thread enh via Toybox
On Thu, Jun 23, 2022 at 11:48 PM Rob Landley wrote: > On 6/22/22 20:02, enh wrote: > > On Wed, Jun 22, 2022 at 1:52 PM Rob Landley > > wrote: > > The problem with the mac tar test is even though it's easy enough to find > what > /etc/passwd calls UID 0: > > ROOT="$(sed

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-06-24 Thread Rob Landley
On 6/22/22 20:02, enh wrote: > On Wed, Jun 22, 2022 at 1:52 PM Rob Landley > wrote: The problem with the mac tar test is even though it's easy enough to find what /etc/passwd calls UID 0: ROOT="$(sed -n '/[^:]*:[^:]*:0:/s/:.*//p' /etc/passwd)" That doesn't change the

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-06-22 Thread enh via Toybox
On Wed, Jun 22, 2022 at 1:52 PM Rob Landley wrote: > On 6/20/22 21:32, enh via Toybox wrote: > > Specifically we were ending up with 2048 blocks allocated, and that -- > > not the stat(1) behavior -- was the reason why this test was failing > > on macOS. > > Yay, I got thunderbird sending email

Re: [Toybox] [PATCH] Fix truncate.test for macOS.

2022-06-22 Thread Rob Landley
On 6/20/22 21:32, enh via Toybox wrote: > Specifically we were ending up with 2048 blocks allocated, and that -- > not the stat(1) behavior -- was the reason why this test was failing > on macOS. Yay, I got thunderbird sending email through gmail again! (The version upgrade changed the

[Toybox] [PATCH] Fix truncate.test for macOS.

2022-06-20 Thread enh via Toybox
Specifically we were ending up with 2048 blocks allocated, and that -- not the stat(1) behavior -- was the reason why this test was failing on macOS. --- tests/truncate.test | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) 0001-Fix-truncate.test-for-macOS.patch Description: Binary data