]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/fstab-generator/fstab-generator.c
fstab-generator: fix checking of fstab_node_to_udev_node() result
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Jun 2016 19:01:22 +0000 (21:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 Jun 2016 19:01:22 +0000 (21:01 +0200)
commit47be5f0742caf56d38b41ae97dff21303d3ed264
tree27ea77b6b67d0a43aa021df8934d6af260083aea
parent40472036cf467b80409d17d18bb28dd1314d93e8
fstab-generator: fix checking of fstab_node_to_udev_node() result

We have to check for OOM here, let's add that. There's really no point in
checking for path_is_absolute() on the result however, as there's no particular
reason why that should be refused. Also, we don't have similar checks for the
other mount devices the generator deals with, hence don't bother with it here
either. Let's remove that check.

(And it shouldn't return made-up errors like "-1" in this case anyway.)
src/fstab-generator/fstab-generator.c