mirror of
https://github.com/systemd/systemd
synced 2024-10-07 00:30:59 +00:00
hibernate-resume: compare device nodes using path_equal_or_inode_same
Follow-up for 9deeca1275
This commit is contained in:
parent
ee1369d789
commit
4427194292
|
@ -21,6 +21,7 @@
|
|||
#include "main-func.h"
|
||||
#include "os-util.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "proc-cmdline.h"
|
||||
#include "special.h"
|
||||
#include "string-util.h"
|
||||
|
@ -169,7 +170,7 @@ static int parse_efi_hibernate_location(void) {
|
|||
arg_resume_device = TAKE_PTR(device);
|
||||
arg_resume_offset = location.offset;
|
||||
} else {
|
||||
if (!streq(arg_resume_device, device))
|
||||
if (!path_equal_or_inode_same(arg_resume_device, device, 0))
|
||||
log_warning("resume=%s doesn't match with HibernateLocation device '%s', proceeding anyway with resume=.",
|
||||
arg_resume_device, device);
|
||||
|
||||
|
|
Loading…
Reference in a new issue