[Pkg-gnupg-commit] [gnupg2] 164/292: common: Use GPG_ERR_INV_VALUE instead of GPG_ERR_EINVAL.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Nov 21 06:31:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit ece13f177d948013b6f3df926406c0cd947abc25
Author: Werner Koch <wk at gnupg.org>
Date: Wed Oct 26 09:02:10 2016 +0200
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 <wk at gnupg.org>
---
common/sysutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/sysutils.c b/common/sysutils.c
index ab3e1d6..3a08df7 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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list