diff options
-rw-r--r-- | src/haveged.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/haveged.c b/src/haveged.c index 014b4ba..733d0da 100644 --- a/src/haveged.c +++ b/src/haveged.c @@ -694,6 +694,9 @@ static void set_watermark( /* RETURN: nothing */ fprintf(wm_fh, "%d\n", level); fclose(wm_fh); } + else if (errno == EACCES) + fprintf(stderr, "No access to %s, can't set watermark (maybe running in a container?)\n", + params->watermark); else error_exit("Fail:set_watermark()!"); } #endif |