chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: remove per-user runtime dir again if setup fails
[elogind.git]
/
src
/
remount-fs
/
remount-fs.c
diff --git
a/src/remount-fs/remount-fs.c
b/src/remount-fs/remount-fs.c
index e30c3443100517ba49d775114e2d253bb3956835..57b47021e4431526ec32c4b34c806d330f0d722a 100644
(file)
--- a/
src/remount-fs/remount-fs.c
+++ b/
src/remount-fs/remount-fs.c
@@
-60,7
+60,7
@@
int main(int argc, char *argv[]) {
if (errno == ENOENT)
return EXIT_SUCCESS;
if (errno == ENOENT)
return EXIT_SUCCESS;
- log_error
(
"Failed to open /etc/fstab: %m");
+ log_error
_errno(errno,
"Failed to open /etc/fstab: %m");
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
@@
-87,7
+87,7
@@
int main(int argc, char *argv[]) {
pid = fork();
if (pid < 0) {
pid = fork();
if (pid < 0) {
- log_error
(
"Failed to fork: %m");
+ log_error
_errno(errno,
"Failed to fork: %m");
ret = EXIT_FAILURE;
continue;
}
ret = EXIT_FAILURE;
continue;
}
@@
-104,7
+104,7
@@
int main(int argc, char *argv[]) {
execv("/bin/mount", (char **) arguments);
execv("/bin/mount", (char **) arguments);
- log_error
(
"Failed to execute /bin/mount: %m");
+ log_error
_errno(errno,
"Failed to execute /bin/mount: %m");
_exit(EXIT_FAILURE);
}
_exit(EXIT_FAILURE);
}
@@
-120,7
+120,7
@@
int main(int argc, char *argv[]) {
k = hashmap_put(pids, UINT_TO_PTR(pid), s);
if (k < 0) {
k = hashmap_put(pids, UINT_TO_PTR(pid), s);
if (k < 0) {
- log_error_errno(
-
k, "Failed to add PID to set: %m");
+ log_error_errno(k, "Failed to add PID to set: %m");
ret = EXIT_FAILURE;
continue;
}
ret = EXIT_FAILURE;
continue;
}
@@
-135,7
+135,7
@@
int main(int argc, char *argv[]) {
if (errno == EINTR)
continue;
if (errno == EINTR)
continue;
- log_error
(
"waitid() failed: %m");
+ log_error
_errno(errno,
"waitid() failed: %m");
ret = EXIT_FAILURE;
break;
}
ret = EXIT_FAILURE;
break;
}