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:
parent
71daf094de
commit
19aff30b03
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue