summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKenji Aoyama <aoyama@cvs.openbsd.org>2023-06-18 13:13:01 +0000
committerKenji Aoyama <aoyama@cvs.openbsd.org>2023-06-18 13:13:01 +0000
commit1aa6d5025b5143fb48450d25f8cfb330559479fc (patch)
treea872d99533bad87694d1ffffaa03a4cbcadf6822 /sys/arch
parentdd9708dafbe887d921b86f418be35ba714b8fd2e (diff)
Add fchmod() entry in luna88k bootloader.
Now 'chmod a-x /bsd.upgrade' works in order to prevent re-upgrade, like other architectures. Tested by me on LUNA-88K2.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/luna88k/stand/boot/conf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/luna88k/stand/boot/conf.c b/sys/arch/luna88k/stand/boot/conf.c
index 411aad2d17d..c729449a9da 100644
--- a/sys/arch/luna88k/stand/boot/conf.c
+++ b/sys/arch/luna88k/stand/boot/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.5 2023/02/11 04:35:34 aoyama Exp $ */
+/* $OpenBSD: conf.c,v 1.6 2023/06/18 13:13:00 aoyama Exp $ */
/* $NetBSD: conf.c,v 1.3 2013/01/16 15:46:20 tsutsui Exp $ */
/*
@@ -98,7 +98,8 @@ int n_netif_drivers = sizeof(netif_drivers) / sizeof(netif_drivers[0]);
__CONCAT(fs,_write), \
__CONCAT(fs,_seek), \
__CONCAT(fs,_stat), \
- __CONCAT(fs,_readdir) }
+ __CONCAT(fs,_readdir), \
+ __CONCAT(fs,_fchmod) }
#ifdef SUPPORT_DISK
struct fs_ops file_system_disk[] = {
FS_OPS(ufs),
@@ -106,6 +107,7 @@ struct fs_ops file_system_disk[] = {
int nfsys_disk = sizeof(file_system_disk) / sizeof(file_system_disk[0]);
#endif
#ifdef SUPPORT_ETHERNET
+#define nfs_fchmod NULL
struct fs_ops file_system_nfs[] = { FS_OPS(nfs) };
#endif