Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151197292
D53476.id165456.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
625 B
Referenced Files
None
Subscribers
None
D53476.id165456.diff
View Options
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -121,11 +121,22 @@
dot()
{
local f verify
+ local dot_dir dot_file
o_verify_set off verify
for f in "$@"; do
if [ -f $f -a -s $f ]; then
dotted="$dotted $f"
+ case $f in
+ */*)
+ dot_dir=${f%/*}
+ dot_file=${f##*/}
+ ;;
+ *)
+ dot_dir=.
+ dot_file=$f
+ ;;
+ esac
. $f
fi
done
@@ -152,8 +163,7 @@
for f in "$@"; do
[ -f $f -a -s $f ] || continue
if is_verified $f 2> /dev/null; then
- dotted="$dotted $f"
- . $f
+ dot $f
else
rc=80 # EAUTH
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 6:38 PM (10 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31045703
Default Alt Text
D53476.id165456.diff (625 B)
Attached To
Mode
D53476: rc.subr set dot_dir and dot_file in dot
Attached
Detach File
Event Timeline
Log In to Comment