Index | Thread | Search

From:
Tim van der Molen <tim@kariliq.nl>
Subject:
mount: preserve DUID when updating file system
To:
tech@openbsd.org
Date:
Wed, 24 Jun 2026 21:27:34 +0200

Download raw body.

Thread
OK?

Index: mount.c
===================================================================
RCS file: /cvs/src/sbin/mount/mount.c,v
diff -p -u -r1.78 mount.c
--- mount.c	9 May 2024 08:35:40 -0000	1.78
+++ mount.c	24 Jun 2026 19:00:45 -0000
@@ -252,7 +252,7 @@ main(int argc, char * const argv[])
 				if ((fs = malloc(sizeof(*fs))) == NULL)
 					err(1, NULL);
 				fs->fs_vfstype = mntbuf->f_fstypename;
-				fs->fs_spec = mntbuf->f_mntfromname;
+				fs->fs_spec = mntbuf->f_mntfromspec;
 			}
 			/*
 			 * It's an update, ignore the fstab file options.