Re: small libfdisk-patch
heinold@physik.tu-cottbus.de (H.Heinold) writes:
> still working on the mips-bootfloppies, I discoverd some not logical
> code. as you see in the patch to discover, if a partion is proc or
> devpts, the filesytem me is used instead of the type. we have the problem
> on mips that the filesystem has a leading /. That's why I am think to discover
> it by type is always save.
> --- fdisk.c Mon Dec 11 22:53:15 2000
> +++ libfdisk/fdisk.c Mon Dec 11 23:01:09 2000
> @@ -739,8 +739,8 @@
> mnt_ent->mnt_fsname, mnt_ent->mnt_dir, mnt_ent->mnt_type, mnt_ent->mnt_opts);
> #endif
> /* If mnt_ent is proc or devpts, ignore it */
> - if ( (strcmp(mnt_ent->mnt_fsname,"proc") == 0) ||
> - (strcmp(mnt_ent->mnt_fsname,"devpts") == 0) ) {
> + if ( (strcmp(mnt_ent->mnt_type,"proc") == 0) ||
> + (strcmp(mnt_ent->mnt_type,"devpts") == 0) ) {
> #ifdef DEBUG
> fprintf(stderr,"proc/devpts fs. Ignoring it.\n");
> #endif
Applied.
> there are other things that dont work right, but I will them post later.
Please do. let me know if you need direct CVS access.
--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>
Reply to: