artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fed7884
)
Revert last until we can guarantee gh_guid can't escape to the
author
krw
<krw@openbsd.org>
Fri, 11 Nov 2022 18:53:29 +0000
(18:53 +0000)
committer
krw
<krw@openbsd.org>
Fri, 11 Nov 2022 18:53:29 +0000
(18:53 +0000)
d_uid written to disk.
sys/kern/subr_disk.c
patch
|
blob
|
history
diff --git
a/sys/kern/subr_disk.c
b/sys/kern/subr_disk.c
index
fddab8a
..
9d7383b
100644
(file)
--- a/
sys/kern/subr_disk.c
+++ b/
sys/kern/subr_disk.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: subr_disk.c,v 1.2
69 2022/11/11 12:14:01
krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.2
70 2022/11/11 18:53:29
krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@
-688,7
+688,6
@@
spoofgpt(struct buf *bp, void (*strat)(struct buf *), const uint8_t *dosbb,
}
lp->d_magic = DISKMAGIC;
- memcpy(lp->d_uid, (char *)&gh.gh_guid, sizeof(lp->d_uid));
*partoffp = partoff;
free(gp, M_DEVBUF, gpbytes);