tree-wide: use new RET_NERRNO() helper at various places
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
ef470ffa23
commit
7c248223eb
@@ -189,7 +189,7 @@ static int mount_one(const MountPoint *p, bool relabel) {
|
||||
strna(p->options));
|
||||
|
||||
if (FLAGS_SET(p->mode, MNT_FOLLOW_SYMLINK))
|
||||
r = mount(p->what, p->where, p->type, p->flags, p->options) < 0 ? -errno : 0;
|
||||
r = RET_NERRNO(mount(p->what, p->where, p->type, p->flags, p->options));
|
||||
else
|
||||
r = mount_nofollow(p->what, p->where, p->type, p->flags, p->options);
|
||||
if (r < 0) {
|
||||
|
||||
Reference in New Issue
Block a user