Page MenuHomeFreeBSD

D59044.id184997.diff
No OneTemporary

D59044.id184997.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
@@ -150,6 +150,19 @@
sed -i "" "\=^\./usr/local/etc = { / type=dir / d; }" "$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
Sat, Sep 5, 9:10 PM (6 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37277478
Default Alt Text
D59044.id184997.diff (987 B)

Event Timeline