projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e41242
)
main: uid_to_name() might theoretically fail, handle that
author
Lennart Poettering
<lennart@poettering.net>
Thu, 16 Nov 2017 11:24:32 +0000
(12:24 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 17 Nov 2017 10:28:17 +0000
(11:28 +0100)
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index
a97c6e1
..
4b39560
100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-1892,8
+1892,8
@@
int main(int argc, char *argv[]) {
_cleanup_free_ char *t;
t = uid_to_name(getuid());
- log_debug(PACKAGE_STRING " running in %suser mode for user "
UID_FMT
"/%s. (" SYSTEMD_FEATURES ")",
- arg_action == ACTION_TEST ? " test" : "", getuid(),
t
);
+ log_debug(PACKAGE_STRING " running in %suser mode for user "
UID_FMT
"/%s. (" SYSTEMD_FEATURES ")",
+ arg_action == ACTION_TEST ? " test" : "", getuid(),
strna(t)
);
}
if (arg_action == ACTION_RUN) {