]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/secret.c
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / common / secret.c
index b6f26ec3ece5c2e9af3107230828f91d392f76f9..8f92fb0a7f01bce100e69c6f99be4369cbe55abe 100644 (file)
@@ -101,8 +101,8 @@ int get_secret_option(const char *secret, const char *key_name,
 
   option[olen] = '\0';
 
-
-  if (secret) {
+  /* when parsing kernel options (-o remount) we get '<hidden>' as the secret */
+  if (secret && (strcmp(secret, "<hidden>") != 0)) {
     ret = set_kernel_secret(secret, key_name);
     if (ret < 0) {
       if (ret == -ENODEV || ret == -ENOSYS) {