mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
mount: don't negate errno when passing it to strerror()
This commit is contained in:
parent
bff7c062a4
commit
d9a76d8f86
2
mount.c
2
mount.c
@ -1360,7 +1360,7 @@ void mount_fd_event(Manager *m, int events) {
|
||||
* table changes */
|
||||
|
||||
if ((r = mount_load_proc_self_mountinfo(m, true)) < 0) {
|
||||
log_error("Failed to reread /proc/self/mountinfo: %s", strerror(-errno));
|
||||
log_error("Failed to reread /proc/self/mountinfo: %s", strerror(errno));
|
||||
|
||||
/* Reset flags, just in case, for later calls */
|
||||
LIST_FOREACH(units_per_type, meta, m->units_per_type[UNIT_MOUNT]) {
|
||||
|
Loading…
Reference in New Issue
Block a user