NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: install/59573: 11.0_BETA install leaves behind /etc/rc.conf.bak.* files
The following reply was made to PR install/59573; it has been noted by GNATS.
From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: install/59573: 11.0_BETA install leaves behind /etc/rc.conf.bak.*
files
Date: Tue, 5 Aug 2025 09:37:15 +0000 (UTC)
On Tue, 5 Aug 2025, Steve Rikli via gnats wrote:
> Turns out this issue it not specific to 11.0_BETA; I freshly-installed
> another VM with 10.1 and also saw an /etc/rc.conf.bak.* file.
>
Yeah, this's been around for some time. I made this patch awhile back, then
forgot to file a PR. Please try:
```
diff -urN a/src/usr.sbin/sysinst/util.c b/src/usr.sbin/sysinst/util.c
--- a/src/usr.sbin/sysinst/util.c 2024-04-26 20:45:43.378592951 +0000
+++ b/src/usr.sbin/sysinst/util.c 2025-02-08 22:30:50.857827469 +0000
@@ -2049,12 +2049,11 @@
hit_enter_to_continue(MSG_rcconf_delete_failed,
NULL);
}
- } else {
- (void)unlink(bakname);
}
}
done:
+ (void)unlink(bakname);
(void)unlink(tempname);
free(rcconf);
free(tempname);
```
-RVP
Home |
Main Index |
Thread Index |
Old Index