Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163263364
D56621.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
921 B
Referenced Files
None
Subscribers
None
D56621.diff
View Options
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -253,6 +253,10 @@
link = &cmd->next;
goto semicolon;
}
+ if (*p == '}') {
+ link = &cmd->next;
+ goto semicolon;
+ }
if (*p)
errx(1, "%lu: %s: extra characters at the end of %c command",
linenum, fname, cmd->code);
@@ -343,6 +347,10 @@
link = &cmd->next;
goto semicolon;
}
+ if (*p == '}') {
+ link = &cmd->next;
+ goto semicolon;
+ }
break;
case TR: /* y */
p++;
@@ -353,6 +361,10 @@
link = &cmd->next;
goto semicolon;
}
+ if (*p == '}') {
+ link = &cmd->next;
+ goto semicolon;
+ }
if (*p)
errx(1,
"%lu: %s: extra text at the end of a transform command", linenum, fname);
@@ -697,6 +709,7 @@
case '\0':
case '\n':
case ';':
+ case '}':
return (p);
case 'p':
s->p = 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 1:44 PM (9 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32137160
Default Alt Text
D56621.diff (921 B)
Attached To
Mode
D56621: sed(1): treat '}' as a command terminator in EMPTY, SUBST, and TR cases
Attached
Detach File
Event Timeline
Log In to Comment