mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-14 06:16:17 +03:00
get_key_material_https: label 'kfdok' defined but not used
The label 'kfdok' is only used with O_TMPFILE, we need to use the same #ifdef around this label. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Toomas Soome <tsoome@me.com> Closes #17894
This commit is contained in:
parent
d0294aa758
commit
5d33801802
@ -613,7 +613,9 @@ get_key_material_https(libzfs_handle_t *hdl, const char *uri,
|
|||||||
(void) unlink(path);
|
(void) unlink(path);
|
||||||
free(path);
|
free(path);
|
||||||
|
|
||||||
|
#ifdef O_TMPFILE
|
||||||
kfdok:
|
kfdok:
|
||||||
|
#endif
|
||||||
if ((key = fdopen(kfd, "r+")) == NULL) {
|
if ((key = fdopen(kfd, "r+")) == NULL) {
|
||||||
ret = errno;
|
ret = errno;
|
||||||
(void) close(kfd);
|
(void) close(kfd);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user