From 16c8c5b8b90b4341f16abeac09589a94bca944c5 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 19 Nov 2009 16:48:43 -0800 Subject: [PATCH] auth: change error code when not supporting authentication --- src/mon/AuthMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 96c2ebfb22f33..85ac9238fd82a 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -388,7 +388,7 @@ bool AuthMonitor::prep_auth(MAuth *m, bool paxos_writable) s->auth_handler = get_auth_service_handler(&mon->key_server, supported); if (!s->auth_handler) { - ret = -EPERM; + ret = -ENOTSUP; goto reply; } start = true; -- 2.39.5