diff options
author | Werner Koch <[email protected]> | 2016-10-26 07:02:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-10-26 07:02:10 +0000 |
commit | ece13f177d948013b6f3df926406c0cd947abc25 (patch) | |
tree | d88555317e63ede2b064eb98c547c8d752d927bf /common/sysutils.c | |
parent | tests: Improve portability of fake-pinentry. (diff) | |
download | gnupg-ece13f177d948013b6f3df926406c0cd947abc25.tar.gz gnupg-ece13f177d948013b6f3df926406c0cd947abc25.zip |
common: Use GPG_ERR_INV_VALUE instead of GPG_ERR_EINVAL.
* common/sysutils.c (gnupg_inotify_watch_socket): Return
GPG_ERR_INV_VALUE for a missing socket name and set proper error
source.
--
By using a different value we can easier see whether the error is due
to a system call or from GnuPG code.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/sysutils.c')
-rw-r--r-- | common/sysutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sysutils.c b/common/sysutils.c index ab3e1d6d5..3a08df774 100644 --- a/common/sysutils.c +++ b/common/sysutils.c @@ -988,7 +988,7 @@ gnupg_inotify_watch_socket (int *r_fd, const char *socket_name) *r_fd = -1; if (!socket_name) - return gpg_error (GPG_ERR_EINVAL); + return my_error (GPG_ERR_INV_VALUE); fname = xtrystrdup (socket_name); if (!fname) |