common: Use GPG_ERR_INV_VALUE instead of GPG_ERR_EINVAL.
authorWerner Koch <wk@gnupg.org>
Wed, 26 Oct 2016 07:02:10 +0000 (09:02 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 26 Oct 2016 07:02:10 +0000 (09:02 +0200)
commitece13f177d948013b6f3df926406c0cd947abc25
treed88555317e63ede2b064eb98c547c8d752d927bf
parent21b318452abbfe21c45c2a67dae0e3a81cff1090
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@gnupg.org>
common/sysutils.c