FreeBSD Bugzilla – Attachment 108066 Details for
Bug 148881
[libdisk] [patch] libdisk emits errors w/ disks that contain spaces in labels
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 563 bytes, created by
Jeremy Chadwick
on 2010-07-23 23:20:06 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jeremy Chadwick
Created:
2010-07-23 23:20:06 UTC
Size:
563 bytes
patch
obsolete
>--- src/lib/libdisk/open_disk.c.orig 2009-08-03 01:13:06.000000000 -0700 >+++ src/lib/libdisk/open_disk.c 2010-07-23 15:09:14.337845551 -0700 >@@ -160,6 +160,13 @@ > > } > t = strsep(&p, " "); /* Type {SUN, BSD, MBR, PC98, GPT} */ >+ /* >+ * Skip LABEL lines. This solves parsing errors when it >+ * comes to disks which contain volume labels or glabels >+ * with spaces, such as FAT-formatted USB flash drives. >+ */ >+ if (!strcmp(t, "LABEL")) >+ continue; > n = strsep(&p, " "); /* name */ > a = strsep(&p, " "); /* len */ > len = strtoimax(a, &r, 0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148881
: 108066