Re: [PATCH 0/1] fix cp /dev/null file

2025-01-18 Thread Samuel Thibault
gfleury, le sam. 18 janv. 2025 13:10:20 +0200, a ecrit: > This fixes a bug related to `cp /dev/null file`, where you would encounter an > error like: > `skipping file /dev/null as it was replaced while being copied`. > > I reduced the `st_blksize` to one page, as it is on GNU/Linux, and added a

[PATCH 1/1] /hurd/null: support setting device ID

2025-01-18 Thread gfleury
--- sutils/MAKEDEV.sh | 2 +- trans/null.c | 56 +-- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh index 7c35fd7..8c67d61 100644 --- a/sutils/MAKEDEV.sh +++ b/sutils/MAKEDEV.sh @@ -140,7 +140,

[PATCH 0/1] fix cp /dev/null file

2025-01-18 Thread gfleury
This fixes a bug related to `cp /dev/null file`, where you would encounter an error like: `skipping file /dev/null as it was replaced while being copied`. I reduced the `st_blksize` to one page, as it is on GNU/Linux, and added a persistent inode `st->st_rdev`. In `sutils/MAKEDEV.sh`, I simply