Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132099110
D14535.id39833.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
721 B
Referenced Files
None
Subscribers
None
D14535.id39833.diff
View Options
Index: head/etc/rc.d/jail
===================================================================
--- head/etc/rc.d/jail
+++ head/etc/rc.d/jail
@@ -316,7 +316,7 @@
# Extract the prefix/netmask/prefixlen part by cutting off the address.
_mask=${_r}
- _mask=`expr "${_mask}" : "${_addr}\(.*\)"`
+ _mask=`expr -- "${_mask}" : "${_addr}\(.*\)"`
# Identify type {inet,inet6}.
case "${_addr}" in
@@ -366,8 +366,8 @@
while [ ${#_x} -gt 0 ]; do
case "${_x}" in
*,*) # Extract the first argument and strip it off the list.
- _i=`expr "${_x}" : '^\([^,]*\)'`
- _x=`expr "${_x}" : "^[^,]*,\(.*\)"`
+ _i=`expr -- "${_x}" : '^\([^,]*\)'`
+ _x=`expr -- "${_x}" : "^[^,]*,\(.*\)"`
;;
*) _i=${_x}
_x=""
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 14, 4:35 PM (2 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23727262
Default Alt Text
D14535.id39833.diff (721 B)
Attached To
Mode
D14535: rc.d/jail: avoid misinterpreting expr arguments
Attached
Detach File
Event Timeline
Log In to Comment