Include missing newline in 'man' error

Because the `strerror` result doesn't include a newline, we need to add
one.  Observed on a minimal system that doesn't have `man` installed,
which behaves like this before the fix:

```
[root@upper tim]# zpool help import
couldn't run man program: No such file or directory[root@upper tim]#
```

Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Hatch <tim@timhatch.com>
Closes #18183
This commit is contained in:
Tim Hatch 2026-02-09 10:19:08 -08:00 committed by GitHub
parent 2646bd5585
commit 64bae56b00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -9285,7 +9285,7 @@ zfs_do_help(int argc, char **argv)
execlp("man", "man", page, NULL); execlp("man", "man", page, NULL);
fprintf(stderr, "couldn't run man program: %s", strerror(errno)); fprintf(stderr, "couldn't run man program: %s\n", strerror(errno));
return (-1); return (-1);
} }

View File

@ -13782,7 +13782,7 @@ zpool_do_help(int argc, char **argv)
(void) execlp("man", "man", page, NULL); (void) execlp("man", "man", page, NULL);
fprintf(stderr, "couldn't run man program: %s", strerror(errno)); fprintf(stderr, "couldn't run man program: %s\n", strerror(errno));
return (-1); return (-1);
} }