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 set the same values I observed on my GNU/Linux 
system.
We need a proper solution before pushing.

The code was borrowed from `trans/streamio.c`.

gfleury (1):
  /hurd/null: support setting device ID

 sutils/MAKEDEV.sh |  2 +-
 trans/null.c      | 56 +++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 55 insertions(+), 3 deletions(-)

-- 
2.39.5


Reply via email to