Do not print error message for missing /etc/crypttab.

Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
Kelly Anderson 2012-01-17 19:02:29 -07:00 committed by Richard Hughes
parent 07a6c353a2
commit 5b2211cb23

View file

@ -426,7 +426,9 @@ up_backend_has_encrypted_swap (UpBackend *backend)
/* get crypttab data */
ret = g_file_get_contents (filename_crypttab, &contents_crypttab, NULL, &error);
if (!ret) {
g_warning ("failed to open %s: %s", filename_crypttab, error->message);
if (error->code != G_FILE_ERROR_NOENT) {
g_warning ("failed to open %s: %s", filename_crypttab, error->message);
}
g_error_free (error);
goto out;
}