mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-14 01:02:04 +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
5582e8b08e
commit
612e8f1e57
@ -613,7 +613,9 @@ get_key_material_https(libzfs_handle_t *hdl, const char *uri,
|
||||
(void) unlink(path);
|
||||
free(path);
|
||||
|
||||
#ifdef O_TMPFILE
|
||||
kfdok:
|
||||
#endif
|
||||
if ((key = fdopen(kfd, "r+")) == NULL) {
|
||||
ret = errno;
|
||||
(void) close(kfd);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user