Hi - Committing as obvious.
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index 2410430c2361..00e7ec63232e 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,3 +1,8 @@ +2020-03-24 Frank Ch. Eigler <f...@redhat.com> + + * debuginfod-find.c (main): Correct /source full-pathness check for + "debuginfod-find -v source deadbeef /pathname" case. + 2020-03-22 Frank Ch. Eigler <f...@redhat.com> * debuginfod-client.c (struct debuginfod_client): Add url field. diff --git a/debuginfod/debuginfod-find.c b/debuginfod/debuginfod-find.c index 787779c76a47..400c268224fb 100644 --- a/debuginfod/debuginfod-find.c +++ b/debuginfod/debuginfod-find.c @@ -1,6 +1,6 @@ /* Command-line frontend for retrieving ELF / DWARF / source files from the debuginfod. - Copyright (C) 2019 Red Hat, Inc. + Copyright (C) 2019-2020 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -121,7 +121,7 @@ main(int argc, char** argv) &cache_name); else if (strcmp(argv[remaining], "source") == 0) { - if (remaining+2 == argc || argv[3][0] != '/') + if (remaining+2 == argc || argv[remaining+2][0] != '/') { fprintf(stderr, "If FILETYPE is \"source\" then absolute /FILENAME must be given\n"); return 1;