Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109417397
D48782.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
D48782.diff
View Options
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -262,14 +262,15 @@
)
#
-# Convert a directory into a symlink. Takes two arguments, the
-# current directory and what it should become a symlink to. The
-# directory is removed and a symlink is created. If we're doing
+# Convert a directory into a symlink. Takes three arguments, the current
+# directory, what it should become a symlink to, and optionally, the mode.
+# The directory is removed and a symlink is created. If we're doing
# a nopriv build, then append this fact to the metalog
#
tgt_dir2symlink ( ) (
dir=$1
symlink=$2
+ mode=${3:-0777}
cd "${NANO_WORLDDIR}"
rm -xrf "$dir"
@@ -277,7 +278,7 @@
if [ -n "$NANO_METALOG" ]; then
echo "./${dir} type=link" \
"uname=${NANO_DEF_UNAME} gname=${NANO_DEF_GNAME}" \
- "mode=0777 link=${symlink}" >> ${NANO_METALOG}
+ "mode=${mode} link=${symlink}" >> ${NANO_METALOG}
fi
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 7:26 PM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16395554
Default Alt Text
D48782.diff (1 KB)
Attached To
Mode
D48782: nanobsd: Make tgt_dir2symlink() take a mode
Attached
Detach File
Event Timeline
Log In to Comment