* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / base / thunderbolt-utils / hotfix-sudo-bash.patch
blob38669ce633e05d17d1ff5dc8fbf6840255aebf16
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/thunderbolt-utils/hotfix-sudo-bash.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- ./utils.c.vanilla 2024-02-23 10:35:49.400000000 +0000
15 +++ ./utils.c 2024-02-23 10:36:30.965000000 +0000
16 @@ -220,7 +220,7 @@
17 char *cmd_to_return = malloc(MAX_LEN * sizeof(char));
18 char cmd_as_root[MAX_LEN];
20 - snprintf(cmd_as_root, sizeof(cmd_as_root), "sudo bash -c \"%s\"", cmd);
21 + snprintf(cmd_as_root, sizeof(cmd_as_root), "sh -c \"%s\"", cmd);
23 strncpy(cmd_to_return, cmd_as_root, MAX_LEN);
24 return trim_white_space(cmd_to_return);