commit 4da7a6917f9fb4837814ae8c646f4b7d1dd1ba1a
parent 8f55d98cbe4cac89466164e45b7ad52e315e35f7
Author: St John Karp <contact@stjo.hn>
Date:   Thu,  9 Jun 2022 07:42:25 -0400
smdev: Fix regex for setting group on tty[0-9]
Escape the square brackets when replacing the default group.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/smdev/build b/core/smdev/build
@@ -6,7 +6,7 @@ sed 's/\/usr\/local/\/usr/' config.mk > _
 mv _ config.mk
 sed -e '/fuse/a \\t{ "hidraw[0-9]", "root", "plugdev", 0660, NULL, NULL },' \
 	-e '/fuse/a \\t{ "hiddev[0-9]", "root", "plugdev", 0660, NULL, NULL },' \
-	-e 's/"tty[0-9]",     "root", "root",  0600,/"tty[0-9]",     "root", "tty",  0660,/' \
+	-e 's/"tty\[0-9\]",     "root", "root",  0600,/"tty\[0-9\]",     "root", "tty",   0660,/' \
 	config.def.h > _
 mv _ config.def.h