Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysinfo.sh's sanitization overincludes if the names are too short #248

Open
CrimsonFork opened this issue Aug 29, 2022 · 1 comment
Open

Comments

@CrimsonFork
Copy link

For example, if the hostname is s,

Linux s 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

becomes

Linux HOSTNAME 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
DiHOSTNAMEtributor ID:	Ubuntu
DeHOSTNAMEcription:	Ubuntu 22.04.1 LTS
ReleaHOSTNAMEe:	22.04
Codename:	jammy
@jigpu
Copy link
Member

jigpu commented Jan 9, 2025

This is a pretty tricky problem to solve. We could avoid "short" items easily enough, but I more often see this overinclude problem with people using parts of their distro or model in their hostname. Stuff like this (using a hostname of 'Arch'):

      Machine ID: MACHINEID
         Boot ID: BOOTID
Operating System: HOSTNAME Linux
          Kernel: Linux 6.6.68-1-lts
    HOSTNAMEitecture: x86-64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants