ask-password: improve log message when inotify limit is reached
authorJan Synacek <jsynacek@redhat.com>
Mon, 8 Oct 2018 13:14:38 +0000 (15:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Nov 2018 14:48:43 +0000 (15:48 +0100)
commit1432d2dbdfa90963272a9b581dc4b55dd3ac514f
tree0771568c2563468266b764a0e6d808971636b3be
parente44c5a3ba6cfdd0435ebc5dd9a78e404ad7a31a6
ask-password: improve log message when inotify limit is reached

When inotify_add_watch() fails because of the inotify limit, errno is
set to ENOSPC and then gets shown to users as "No space left on device".
That is very confusing and requires in-depth knowledge of the C library.
Therefore, show user-friendly message when inotify limit is reached.

Fixes #6030.
src/tty-ask-password-agent/tty-ask-password-agent.c