summaryrefslogtreecommitdiff
path: root/src/host.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-22 05:09:08 +0900
committer諏訪子 <suwako@076.moe>2024-06-22 05:09:08 +0900
commit87512412cc7c938f48eac8c7d6e72f9834299569 (patch)
tree6b044e828f715bd363fffe66914c2511110730a2 /src/host.c
parent8e09e19b21140193cf27de835cdad87710fd2c85 (diff)
SunOS: CPUとホスト名の表示の修正
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host.c b/src/host.c
index 77020ae..985b90a 100644
--- a/src/host.c
+++ b/src/host.c
@@ -95,7 +95,7 @@ void display_host_model() {
free((void *)cmd);
#elif defined(__sun)
const char *cmd = run_host_command("smbios | grep \"Product\" | "
- "sed 's/ Product: //' | head -1");
+ "sed 's/ Product: //' | awk '{$1=$1};1' | head -1");
if (!cmd) return;
printf("%s", cmd);
free((void *)cmd);