mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-10 20:36:21 +03:00
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:
parent
2646bd5585
commit
64bae56b00
@ -9285,7 +9285,7 @@ zfs_do_help(int argc, char **argv)
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@ -13782,7 +13782,7 @@ zpool_do_help(int argc, char **argv)
|
||||
|
||||
(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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user