diff --git a/rpm/x509-scitokens-issuer.spec b/rpm/x509-scitokens-issuer.spec index cd612c5..851a7fe 100644 --- a/rpm/x509-scitokens-issuer.spec +++ b/rpm/x509-scitokens-issuer.spec @@ -1,5 +1,5 @@ Name: x509-scitokens-issuer -Version: 0.8.0 +Version: 0.8.1 Release: 1%{?dist} Summary: SciTokens issuer based on X509 authentication. @@ -149,6 +149,9 @@ fi %{_bindir}/macaroon-init %changelog +* Mon Oct 26 2020 Edgar Fajardo - 0.8.1-1 +- Fix bug preventing macaroon-init for EL8 + * Tue Aug 18 2020 Edgar Fajardo - 0.8.0-1 - Adding support for EL8 diff --git a/tools/macaroon-init.cpp b/tools/macaroon-init.cpp index c331985..4fa78e9 100644 --- a/tools/macaroon-init.cpp +++ b/tools/macaroon-init.cpp @@ -19,8 +19,8 @@ int main(int argc, char *argv[]) const char *url = argv[1]; int validity = std::stoi(argv[2]); - std::vector activities_list; - activities_list.reserve(argc-2); + std::vector activities_list(argc-2); + for (int idx=0; idx