mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
zfs: missing newline character in zfs_do_channel_program() error message
This commit simply adds a missing newline ("\n") character to the error message printed by the zfs command when the provided pool parameter can't be found. Reviewed-by: Chris Dunlop <chris@onthe.net.au> Reviewed-by: Giuseppe Di Natale <guss80@gmail.com> Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #8783
This commit is contained in:
parent
0ff5cd0772
commit
62b2152eca
@ -28,6 +28,7 @@
|
|||||||
* Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>.
|
* Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>.
|
||||||
* Copyright 2016 Nexenta Systems, Inc.
|
* Copyright 2016 Nexenta Systems, Inc.
|
||||||
* Copyright (c) 2019 Datto Inc.
|
* Copyright (c) 2019 Datto Inc.
|
||||||
|
* Copyright (c) 2019, loli10K <ezomori.nozomu@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -7522,7 +7523,7 @@ zfs_do_channel_program(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((zhp = zpool_open(g_zfs, poolname)) == NULL) {
|
if ((zhp = zpool_open(g_zfs, poolname)) == NULL) {
|
||||||
(void) fprintf(stderr, gettext("cannot open pool '%s'"),
|
(void) fprintf(stderr, gettext("cannot open pool '%s'\n"),
|
||||||
poolname);
|
poolname);
|
||||||
if (fd != 0)
|
if (fd != 0)
|
||||||
(void) close(fd);
|
(void) close(fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user