gpgscm: Fix handling an error for chdir.

* tests/gpgscm/ffi.c (do_chdir): Use gpg_error_from_syserror.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-05-02 14:16:47 +09:00
parent 792374edb6
commit 4fe8859541
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ do_chdir (scheme *sc, pointer args)
FFI_ARG_OR_RETURN (sc, char *, name, path, args);
FFI_ARGS_DONE_OR_RETURN (sc, args);
if (chdir (name))
FFI_RETURN_ERR (sc, errno);
FFI_RETURN_ERR (sc, gpg_error_from_syserror ());
FFI_RETURN (sc);
}