Skip to content

Extra chars in /etc/hosts #9642

@elsaco

Description

@elsaco

Version

Microsoft Windows [Version 10.0.19045.2604]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

AlmaLinux 9.1

Other Software

No response

Repro Steps

Check system logs for bad address at /etc/hosts kind of message (i.e. journalctl --grep "bad address")

Expected Behavior

No extra characters added to /etc/hosts

Actual Behavior

<feff> added to /etc/hosts. Top pane show Windows' hosts file content. The bottom is WSL, Use view to display as cat or bat won't show it. Notice line 6:

wsl_hosts

Diagnostic Logs

No response

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