Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: mount: preserve DUID when updating file system
To:
Tim van der Molen <tim@kariliq.nl>
Cc:
tech@openbsd.org
Date:
Wed, 24 Jun 2026 13:38:22 -0600

Download raw body.

Thread
Oops.

Tim van der Molen <tim@kariliq.nl> wrote:

> 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.
>