Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170079329
D59044.id184833.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
988 B
Referenced Files
None
Subscribers
None
D59044.id184833.diff
View Options
diff --git a/tools/tools/nanobsd/_xxx_includes.subr b/tools/tools/nanobsd/_xxx_includes.subr
--- a/tools/tools/nanobsd/_xxx_includes.subr
+++ b/tools/tools/nanobsd/_xxx_includes.subr
@@ -160,6 +160,19 @@
sed -i "" "\=^\./root =s/mode=0\{0,1\}755/mode=0750/g" "$NANO_METALOG"
}
+# Fix directory permissions in the pkg database
+# https://github.com/freebsd/pkg/issues/2658
+# FreeBSD-bootloader-dev-16.snap20251026024203: /usr/share/man/man3/libsa.3.gz [perm] --------- -> r--r--r--
+# FreeBSD-runtime-16.snap20260601092744: /root [perm] rwxr-x--- -> rwxr-xr-x
+# FreeBSD-utilities-16.snap20260531173731: /root [perm] rwxr-x--- -> rwxr-xr-x
+_xxx_fix_pkg_permissions() {
+ tgt_pkg shell \
+ "UPDATE files SET perm = 292 WHERE path = '/usr/share/man/man3/libsa.3.gz';"
+ tgt_pkg shell "UPDATE directories SET perm = 488 WHERE path = '/root';"
+
+ chmod 0750 ${NANO_WORLDDIR}/root
+}
+
#
# Manually run triggers and package scripts
# XXX: Manually run scripts or just triggers?
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 4, 11:07 AM (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37213188
Default Alt Text
D59044.id184833.diff (988 B)
Attached To
Mode
D59044: nanobsd: Add _xxx_fix_pkg_permissions
Attached
Detach File
Event Timeline
Log In to Comment