mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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:
parent
792374edb6
commit
4fe8859541
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user