diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-03-30 07:52:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-03-30 07:52:33 +0000 |
commit | bf0f94ab5eae936591e29e8f7d2a371fea208c3d (patch) | |
tree | 67ef3a5c29b016573a5d0466f97bff6a68b38d95 /sys/arch/mips64 | |
parent | 58a4d9051f44de59c0b328bef84258c7ad009269 (diff) |
first approximation: spoof UDF filesystem disklabels when we see them.
it is likely a slight bug or two will sneak in with this, so everyone
please keep an eye out on your disklabels
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/disksubr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/disksubr.c b/sys/arch/mips64/mips64/disksubr.c index bfafe532c40..56ed5759d97 100644 --- a/sys/arch/mips64/mips64/disksubr.c +++ b/sys/arch/mips64/mips64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.6 2004/10/30 14:48:59 pefo Exp $ */ +/* $OpenBSD: disksubr.c,v 1.7 2005/03/30 07:52:32 deraadt Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -331,6 +331,10 @@ readdisklabel(dev, strat, lp, osdep, spoofonly) if (msg && iso_disklabelspoof(dev, strat, lp) == 0) msg = NULL; #endif +#if defined(UDF) + if (msg && udf_disklabelspoof(dev, strat, lp) == 0) + msg = NULL; +#endif /* If there was an error, still provide a decent fake one. */ if (msg) |