Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161018590
D57899.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
981 B
Referenced Files
None
Subscribers
None
D57899.diff
View Options
diff --git a/libexec/rc/rc.d/dumpon b/libexec/rc/rc.d/dumpon
--- a/libexec/rc/rc.d/dumpon
+++ b/libexec/rc/rc.d/dumpon
@@ -22,8 +22,7 @@
warn "The dumppubkey variable is deprecated. Use dumpon_flags."
flags="${flags} -k ${dumppubkey}"
fi
- /sbin/dumpon ${flags} "${1}"
- if [ $? -eq 0 ]; then
+ if /sbin/dumpon ${flags} "${1}"; then
# Make a symlink in devfs for savecore
ln -fs "${1}" /dev/dumpdev
return 0
@@ -50,7 +49,7 @@
# Enable dumpdev so that savecore can see it. Enable it
# early so a crash early in the boot process can be caught.
#
- case ${dumpdev} in
+ case "${dumpdev}" in
[Nn][Oo])
;;
[Aa][Uu][Tt][Oo] | '')
@@ -60,12 +59,12 @@
dumpon_try "${dev}"
return $?
fi
- if [ -z ${dumpdev} ] ; then
+ if [ -z "${dumpdev}" ] ; then
return
fi
while read dev mp type more ; do
[ "${type}" = "swap" ] || continue
- case ${dev} in
+ case "${dev}" in
*.bde|*.eli)
dumpon_warn_unencrypted
dev=${dev%.*}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 30, 9:42 PM (10 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34425792
Default Alt Text
D57899.diff (981 B)
Attached To
Mode
D57899: rc.d/dumpon: minor hardening/tightening up
Attached
Detach File
Event Timeline
Log In to Comment