chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dbus1-generator: add missing "path=" and "unix:*" to DBUS environment variables
[elogind.git]
/
src
/
getty-generator
/
getty-generator.c
diff --git
a/src/getty-generator/getty-generator.c
b/src/getty-generator/getty-generator.c
index 36a93695fbd449e7ab63cd61604d5a1218cfaaec..aeb6d71d740dede6757b61d6507bf1382a9e4e27 100644
(file)
--- a/
src/getty-generator/getty-generator.c
+++ b/
src/getty-generator/getty-generator.c
@@
-130,7
+130,7
@@
int main(int argc, char *argv[]) {
* the variable name we only support ptys here. */
r = getenv_for_pid(1, "container_ttys", &container_ttys);
* the variable name we only support ptys here. */
r = getenv_for_pid(1, "container_ttys", &container_ttys);
- if (r >
=
0) {
+ if (r > 0) {
char *w, *state;
size_t l;
char *w, *state;
size_t l;
@@
-147,7
+147,7
@@
int main(int argc, char *argv[]) {
t = tty;
/* Then, make sure it's actually a pty */
t = tty;
/* Then, make sure it's actually a pty */
- t = path_startswith(t
ty
, "pts/");
+ t = path_startswith(t, "pts/");
if (!t)
continue;
if (!t)
continue;