Zbigniew Jędrzejewski-Szmek
30927a2484
Allow control characters in environment variable values
...
So far, we would allow certain control characters (NL since
b4346b9a77 , TAB since 6294aa76d8 ), but not others. Having
other control characters in environment variable *value* is expected and widely
used, for various prompts like $LESS, $LESS_TERMCAP_*, and other similar
variables. The typical environment exported by bash already contains a dozen or
so such variables, so programs need to handle them.
We handle then correctly too, for example in 'systemctl show-environment',
since 804ee07c13 . But we would still disallow setting such variables
by the user, in unit file Environment= and in set-environment/import-environment
operations. This is unexpected and confusing and doesn't help with anything
because such variables are present in the environment through other means.
When printing such variables, 'show-environment' escapes all special
characters, so variables with control characters are plainly visible.
In other uses, e.g. 'cat -v' can be used in similar fashion. This would already
need to be done to suppress color codes starting with \[.
Note that we still forbid invalid utf-8 with this patch. (Control characters
are valid, since they are valid 7-bit ascii.) I'm not sure if we should do
that, but since people haven't been actually asking for invalid utf-8, and only
for control characters, and invalid utf-8 causes other issues, I think it's OK
to leave this unchanged.
Fixes #4446 , https://gitlab.gnome.org/GNOME/gnome-session/-/issues/45 .
2021-01-19 14:18:34 +01:00
..
2021-01-19 07:06:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-25 09:48:17 +01:00
2021-01-15 11:06:11 -05:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-16 12:42:53 +09:00
2020-12-23 11:07:48 +00:00
2020-10-27 16:02:18 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-15 11:06:11 -05:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-17 20:02:32 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-16 18:30:15 +01:00
2020-11-09 13:23:58 +09:00
2020-12-16 10:54:57 +01:00
2020-12-16 11:02:18 +01:00
2020-09-30 14:43:12 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2021-01-15 11:06:11 -05:00
2020-11-09 13:23:58 +09:00
2020-12-15 19:29:42 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-21 12:39:18 +00:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-08-20 17:42:13 +02:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-18 16:27:14 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-18 23:25:43 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-14 12:05:55 +00:00
2021-01-18 17:24:05 +00:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-17 20:02:32 +01:00
2020-11-09 13:23:58 +09:00
2020-11-27 09:03:42 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-17 09:45:50 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-17 11:13:10 +01:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-12-16 17:21:48 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2021-01-04 11:01:17 +00:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-18 18:26:14 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-30 12:21:20 +01:00
2020-11-09 13:23:58 +09:00
2020-11-25 14:52:40 +01:00
2020-11-09 13:23:58 +09:00
2020-11-15 05:15:46 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2021-01-04 11:01:17 +00:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 16:33:14 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2021-01-04 11:01:17 +00:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-10 14:20:06 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-01 15:15:39 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-12-01 15:15:39 +01:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-10 13:14:42 +01:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-01 15:15:39 +01:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-19 14:18:34 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-07 16:18:29 +01:00
2020-12-18 12:59:29 +09:00
2020-12-17 20:02:32 +01:00
2020-12-17 20:02:32 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-15 10:33:28 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-23 22:15:36 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-16 10:54:57 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-01 14:17:47 +01:00
2020-12-01 14:17:47 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-23 10:18:03 +00:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-17 20:02:32 +01:00
2020-12-08 09:24:11 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-09 18:11:01 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-25 12:28:05 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-28 10:52:33 +01:00
2020-11-09 13:23:58 +09:00
2020-12-28 10:53:20 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-15 11:06:11 -05:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-09 18:25:32 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-19 08:47:39 +09:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:36 +09:00
2020-11-09 13:23:58 +09:00
2021-01-13 06:41:06 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-17 08:39:28 +01:00
2021-01-17 12:47:08 +09:00
2020-12-07 19:56:59 +01:00
2020-12-31 11:43:44 +00:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-15 11:06:11 -05:00
2020-12-09 18:25:32 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-17 20:26:24 +01:00
2021-01-04 16:48:51 +01:00
2020-11-09 13:23:58 +09:00
2021-01-03 22:51:07 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-15 08:52:51 +09:00
2021-01-12 22:00:35 +01:00
2020-12-17 20:02:32 +01:00
2020-11-09 13:23:58 +09:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2020-11-12 17:10:32 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-12-10 12:33:34 +09:00
2020-11-09 13:23:58 +09:00
2020-12-16 17:21:48 +01:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2020-11-09 13:23:58 +09:00
2021-01-15 11:06:11 -05:00
2020-05-06 10:22:54 +02:00
2020-12-17 20:02:32 +01:00