Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162882712
D53865.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D53865.diff
View Options
diff --git a/share/examples/jails/jib b/share/examples/jails/jib
--- a/share/examples/jails/jib
+++ b/share/examples/jails/jib
@@ -272,7 +272,7 @@
shift $(( $OPTIND - 1 ))
local name="$1"
- [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -gt 1 ] ||
+ [ "${name:-x}" = "${name#*[![[:print:]]]}" -a $# -gt 1 ] ||
action_usage addm # NOTREACHED
shift 1 # name
@@ -382,7 +382,7 @@
done
shift $(( $OPTIND -1 ))
local name="$1"
- [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -eq 1 ] ||
+ [ "${name:-x}" = "${name#*[![[:print:]]]}" -a $# -eq 1 ] ||
action_usage destroy # NOTREACHED
mustberoot_to_continue
jib_show "$name" | xargs -rn1 -I eiface ifconfig eiface destroy
diff --git a/share/examples/jails/jng b/share/examples/jails/jng
--- a/share/examples/jails/jng
+++ b/share/examples/jails/jng
@@ -275,7 +275,7 @@
shift $(( $OPTIND - 1 ))
local name="$1"
- [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -gt 1 ] ||
+ [ "${name:-x}" = "${name#*[![[:print:]]]}" -a $# -gt 1 ] ||
action_usage bridge # NOTREACHED
shift 1 # name
@@ -443,7 +443,7 @@
done
shift $(( $OPTIND -1 ))
local name="$1"
- [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -eq 1 ] ||
+ [ "${name:-x}" = "${name#*[![[:print:]]]}" -a $# -eq 1 ] ||
action_usage shutdown # NOTREACHED
mustberoot_to_continue
jng_show "$name" | xargs -rn1 -I eiface ngctl shutdown eiface:
@@ -461,7 +461,7 @@
done
shift $(( $OPTIND -1 ))
local name="$1"
- [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -eq 1 ] ||
+ [ "${name:-x}" = "${name#*[![[:print:]]]}" -a $# -eq 1 ] ||
action_usage stats # NOTREACHED
mustberoot_to_continue
for eiface in $( jng_show "$name" ); do
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 11:37 PM (5 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35210246
Default Alt Text
D53865.diff (1 KB)
Attached To
Mode
D53865: examples/jails: Allow any character in interface names
Attached
Detach File
Event Timeline
Log In to Comment