From 1aa6d5025b5143fb48450d25f8cfb330559479fc Mon Sep 17 00:00:00 2001 From: Kenji Aoyama Date: Sun, 18 Jun 2023 13:13:01 +0000 Subject: 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. --- sys/arch/luna88k/stand/boot/conf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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 -- cgit v1.2.3