From 5252e900f0a8b31ef8ffc28623338246c9e50bf6 Mon Sep 17 00:00:00 2001 From: Victor Kotlyar <Victor.Kotlyar@cern.ch> Date: Fri, 19 Jul 2019 16:32:05 +0200 Subject: [PATCH] Change the order for setting capabilities and reading configuration files for cta-tape-label. --- tapeserver/tapelabel/TapeLabelCmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tapeserver/tapelabel/TapeLabelCmd.cpp b/tapeserver/tapelabel/TapeLabelCmd.cpp index 25cd183ba3..e0f3413c70 100644 --- a/tapeserver/tapelabel/TapeLabelCmd.cpp +++ b/tapeserver/tapelabel/TapeLabelCmd.cpp @@ -76,10 +76,10 @@ int TapeLabelCmd::exceptionThrowingMain(const int argc, char *const *const argv) params.push_back(cta::log::Param("force", boolToStr(m_force))); m_log(cta::log::INFO, "Label session started", params); + readAndSetConfiguration(getUsername(), cmdLineArgs.m_vid, cmdLineArgs.m_oldLabel); + const std::string capabilities("cap_sys_rawio+ep"); setProcessCapabilities(capabilities); - - readAndSetConfiguration(getUsername(), cmdLineArgs.m_vid, cmdLineArgs.m_oldLabel); m_catalogue->checkTapeForLabel(m_vid); -- GitLab