mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
ctdb-common: Avoid ENOENT for unknown conf type tags
Only use ENOENT for missing configuration file. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit f1084400387c0b1257b6d92ee6e8a89504d788fc)
This commit is contained in:
parent
372b79c4f0
commit
40dff2ce05
@ -155,7 +155,7 @@ static int conf_value_from_string(TALLOC_CTX *mem_ctx,
|
||||
break;
|
||||
|
||||
default:
|
||||
return ENOENT;
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
@ -232,7 +232,7 @@ static int conf_value_copy(TALLOC_CTX *mem_ctx,
|
||||
break;
|
||||
|
||||
default:
|
||||
return ENOENT;
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user