opensc-explorer: use relative addressing in do_cat

'cat' takes a file_id as argument. This should be selected relative
to the currently selected DF instead of being treated as an ID.
(compare with 'get' that also takes a file_id argument)

See http://www.opensc-project.org/pipermail/opensc-devel/2011-March/016172.html

Signed-off-by: Peter Marschall <peter@adpm.de>

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5280 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2011-03-31 07:45:19 +00:00
parent 71daf094de
commit 19aff30b03
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ static int do_cat(int argc, char **argv)
goto usage;
}
} else {
if (arg_to_path(argv[0], &path, 1) != 0)
if (arg_to_path(argv[0], &path, 0) != 0)
goto usage;
r = sc_select_file(card, &path, &file);
if (r) {