Re: mount: preserve DUID when updating file system

"Theo de Raadt" <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
Oops.

Tim van der Molen <[email protected]> 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.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.