https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291590
Bug ID: 291590
Summary: Unexpected behaviour with cp(1)
Product: Base System
Version: 15.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
root@pkg:~ # ls -hl /usr/src/share/keys/pkgbase-15
total 1.0 KB
-rw-r--r-- 1 root wheel 42B Dec 12 00:07 Makefile
drwxr-xr-x 2 root wheel 5B Dec 12 00:07 trusted
root@pkg:~ # rm -r /usr/share/keys/pkgbase-15
root@pkg:~ # file /usr/share/keys/pkgbase-15
/usr/share/keys/pkgbase-15: cannot open `/usr/share/keys/pkgbase-15' (No such
file or directory)
root@pkg:~ # sh
# cp /usr/src/usr.sbin/pkg/FreeBSD.conf.quarterly-release \
> /etc/pkg/FreeBSD.conf
# cp -R /usr/src/share/keys/pkgbase-15 /usr/share/keys/pkgbase-15
# ls -hl /usr/share/keys/pkgbase-15
total 1.0 KB
-rw-r--r-- 1 root wheel 42B Dec 12 01:22 Makefile
drwxr-xr-x 2 root wheel 5B Dec 12 01:22 trusted
# ls -hlR /usr/share/keys/pkgbase-15
total 1.0 KB
-rw-r--r-- 1 root wheel 42B Dec 12 01:22 Makefile
drwxr-xr-x 2 root wheel 5B Dec 12 01:22 trusted
/usr/share/keys/pkgbase-15/trusted:
total 14 KB
-rw-r--r-- 1 root wheel 148B Dec 12 01:22 Makefile
-rw-r--r-- 1 root wheel 99B Dec 12 01:22 awskms-15
-rw-r--r-- 1 root wheel 99B Dec 12 01:22 backup-signing-15
# exit
root@pkg:~ # rm /usr/share/keys/pkgbase-15/pkgbase-15/Makefile
rm: /usr/share/keys/pkgbase-15/pkgbase-15/Makefile: No such file or directory
root@pkg:~ # rm /usr/share/keys/pkgbase-15/Makefile
root@pkg:~ # rm /usr/share/keys/pkgbase-15/pkgbase-15/trusted/Makefile
rm: /usr/share/keys/pkgbase-15/pkgbase-15/trusted/Makefile: No such file or
directory
root@pkg:~ # rm /usr/share/keys/pkgbase-15/trusted/Makefile
root@pkg:~ # sh
# cp -R /usr/src/share/keys/pkgbase-15 /usr/share/keys/pkgbase-15
# exit
root@pkg:~ # ls -hlR /usr/share/keys/pkgbase-15
total 1.0 KB
drwxr-xr-x 3 root wheel 4B Dec 12 01:26 pkgbase-15
drwxr-xr-x 2 root wheel 4B Dec 12 01:25 trusted
/usr/share/keys/pkgbase-15/pkgbase-15:
total 1.0 KB
-rw-r--r-- 1 root wheel 42B Dec 12 01:26 Makefile
drwxr-xr-x 2 root wheel 5B Dec 12 01:26 trusted
/usr/share/keys/pkgbase-15/pkgbase-15/trusted:
total 14 KB
-rw-r--r-- 1 root wheel 148B Dec 12 01:26 Makefile
-rw-r--r-- 1 root wheel 99B Dec 12 01:26 awskms-15
-rw-r--r-- 1 root wheel 99B Dec 12 01:26 backup-signing-15
/usr/share/keys/pkgbase-15/trusted:
total 9.0 KB
-rw-r--r-- 1 root wheel 99B Dec 12 01:22 awskms-15
-rw-r--r-- 1 root wheel 99B Dec 12 01:22 backup-signing-15
root@pkg:~ # rm /usr/share/keys/pkgbase-15/pkgbase-15/Makefile
root@pkg:~ # rm /usr/share/keys/pkgbase-15/pkgbase-15/trusted/Makefile
root@pkg:~ # freebsd-version -kru ; uname -mvKU
15.0-RELEASE
15.0-RELEASE
15.0-RELEASE
FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC amd64 1500068
1500068
root@pkg:~ # date ; uptime
Fri Dec 12 01:28:02 GMT 2025
1:28AM up 1:15, 2 users, load averages: 1.30, 1.03, 0.67
root@pkg:~ # exit
logout
grahamperrin@pkg:~ %
--
You are receiving this mail because:
You are the assignee for the bug.