mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-20 10:08:11 +02:00
Do not print error message for missing /etc/crypttab.
Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
07a6c353a2
commit
5b2211cb23
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue