FreeBSD Bugzilla – Attachment 1833 Details for
Bug 6129
Fsck's disk recognization algorithm is out of date.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 678 bytes, created by
matutaka
on 1998-03-25 14:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
matutaka
Created:
1998-03-25 14:00:01 UTC
Size:
678 bytes
patch
obsolete
>*** sbin/fsck/preen.c.orig Mon Oct 28 03:28:39 1996 >--- sbin/fsck/preen.c Sat Mar 14 19:01:07 1998 >*************** >*** 206,217 **** > register char *p; > size_t len = 0; > >! for (p = name + strlen(name) - 1; p >= name; --p) >! if (isdigit(*p)) { >! len = p - name + 1; >! break; >! } >! if (p < name) > len = strlen(name); > > for (dk = disks, dkp = &disks; dk; dkp = &dk->next, dk = dk->next) { >--- 206,216 ---- > register char *p; > size_t len = 0; > >! if ((p = rindex(name, '/')) != 0) { >! while (*p && !isdigit(*p)) >! p++; >! len = p - name; >! } else > len = strlen(name); > > for (dk = disks, dkp = &disks; dk; dkp = &dk->next, dk = dk->next) {
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 6129
: 1833