Page MenuHomeFreeBSD

D59044.id184833.diff
No OneTemporary

D59044.id184833.diff

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

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)

Event Timeline