chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bootchart: fix two unitialized memory frees
[elogind.git]
/
src
/
core
/
main.c
diff --git
a/src/core/main.c
b/src/core/main.c
index 7b039835a8cffe03f38164150c1c9b645a6ddfad..01a6d41fb4c7d9ade192db5acfb76c5c5e443640 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-1437,7
+1437,7
@@
int main(int argc, char *argv[]) {
/* Mount /proc, /sys and friends, so that /proc/cmdline and
* /proc/$PID/fd is available. */
- if (get
euid() == 0 && !getenv("SYSTEMD_SKIP_API_MOUNTS")
) {
+ if (get
pid() == 1
) {
r = mount_setup(loaded_policy);
if (r < 0)
goto finish;