Skip to content

/dev/null is a weird file #10

Description

That's precisely what stat says:

localhost ~ # stat /dev/null
  File: ‘/dev/null’
  Size: 0               Blocks: 0          IO Block: 512    weird file
Device: 0h/0d   Inode: 0           Links: 0
Access: (0000/?---------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1970-01-01 00:00:00.000000000 +0000
Modify: 1970-01-01 00:00:00.000000000 +0000
Change: 1970-01-01 00:00:00.000000000 +0000
 Birth: -

And it's causing problems with some programs (I don't remember what exactly was tripped by this in original userland, but I'm trying to run gentoo userland, and emerge fails sanity checks due to this).

Additionally, it appears there's no way to modify /dev - it always results in Operation not permitted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions