summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2016-02-11 01:26:47 +0000
committerBen Hutchings <ben@decadent.org.uk>2016-02-11 01:49:30 +0000
commit138af7340dddd2aab86c76a796fe534de69f605b (patch)
treea2b91147fe02aec73c941772f27a768af9ee6477 /debian
parentc8c932d3efa4467835d02205eb23cd3716366e8c (diff)
hook-functions: Dereference links when looking up block device number
block_dev_mod_add usually gets a device name that has already been canonicalised using 'readlink -f', but this is not true in the case of the resume device. By default stat(1) uses lstat(2) which will give us a device number of 0:0 for a symlink! Rather than adding another use of 'readlink -f', add the -L option so it dereferences symlinks to block devices. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions