From d460e24db27cae6a48f548d2b92fe2f807ad0b37 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 11 Jun 2025 16:57:37 -0400 Subject: usr.sbin: install: lseek() back to zero after wipe Signed-off-by: Ian Moffett --- usr.sbin/install/install.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin') diff --git a/usr.sbin/install/install.c b/usr.sbin/install/install.c index 51ec3c0..186b164 100644 --- a/usr.sbin/install/install.c +++ b/usr.sbin/install/install.c @@ -179,6 +179,7 @@ installer_wipe(int hdd_fd, uint32_t count) progress_update(&bar, i, 256); } + lseek(hdd_fd, 0, SEEK_SET); puts("OK"); } -- cgit v1.2.3