Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170660865
D59044.id184509.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1011 B
Referenced Files
None
Subscribers
None
D59044.id184509.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
# XXXJL do we need to manually run the scripts or just the triggers?
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 6, 9:13 PM (6 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37031066
Default Alt Text
D59044.id184509.diff (1011 B)
Attached To
Mode
D59044: nanobsd: Add _xxx_fix_pkg_permissions
Attached
Detach File
Event Timeline
Log In to Comment