Skip to content

Commit

Permalink
Fixing bug that prevented running on el8
Browse files Browse the repository at this point in the history
  • Loading branch information
efajardo committed Oct 26, 2020
1 parent 78d241e commit 9154116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion rpm/x509-scitokens-issuer.spec
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -149,6 +149,9 @@ fi
%{_bindir}/macaroon-init

%changelog
* Mon Oct 26 2020 Edgar Fajardo <[email protected]> - 0.8.1-1
- Fix bug preventing macaroon-init for EL8

* Tue Aug 18 2020 Edgar Fajardo <[email protected]> - 0.8.0-1
- Adding support for EL8

Expand Down
4 changes: 2 additions & 2 deletions tools/macaroon-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ int main(int argc, char *argv[])
const char *url = argv[1];
int validity = std::stoi(argv[2]);

std::vector<const char *> activities_list;
activities_list.reserve(argc-2);
std::vector<const char *> activities_list(argc-2);

for (int idx=0; idx<argc-3; idx++)
{
activities_list[idx] = argv[idx+3];
Expand Down

0 comments on commit 9154116

Please sign in to comment.