* e.g. allow 'hammer' or 'HAMMER' to be specified when configuring a
filesystem type for a partition. When displayed the proper case will be
used.
This reduces confusion for people trying to partition a disk manually.
tp = unknown;
cpp = dktypenames;
for (; cpp < &dktypenames[DKMAXTYPES]; cpp++) {
- if (*cpp && streq(*cpp, tp)) {
+ if (*cpp && strcasecmp(*cpp, tp) == 0) {
lp->d_type = cpp - dktypenames;
break;
}
}
cp = tp;
tp = word(cp);
- for (cpp = fstypenames; cpp < &fstypenames[FSMAXTYPES]; cpp++)
- if (*cpp && streq(*cpp, cp))
+ for (cpp = fstypenames; cpp < &fstypenames[FSMAXTYPES]; cpp++) {
+ if (*cpp && strcasecmp(*cpp, cp) == 0)
break;
+ }
if (*cpp != NULL) {
pp->p_fstype = cpp - fstypenames;
} else {
*/
cp = tp;
tp = word(cp);
- for (cpp = fstypenames; cpp < &fstypenames[FSMAXTYPES]; cpp++)
- if (*cpp && streq(*cpp, cp))
+ for (cpp = fstypenames; cpp < &fstypenames[FSMAXTYPES]; cpp++) {
+ if (*cpp && strcasecmp(*cpp, cp) == 0)
break;
+ }
if (*cpp != NULL) {
pp->p_fstype = cpp - fstypenames;
} else {