ams,
This change is need in parted to be able to use paths with parted.
In gnu.c right now it is using store_typed_open which needs a name
like foo:bar. This changed allows you use such things as /dev/hd2
for example.
Thanks
hde
[EMAIL PROTECTED] (Alfred M. Szmidt) writes:
> --- /home/hde/PATCHED_parted-1.6.11/libparted/gnu.c 2004-08-13
> 09:57:20.000000000 -0500
> +++ /home/hde/parted-1.6.11/libparted/gnu.c 2004-04-24 22:34:00.000000000
> -0500
> @@ -235,16 +235,7 @@
> arch_specific->consume = 1;
>
> retry_open:
> - /* Simple test to determine if the user uses a path or TYPE:NAME. */
> - if (strchr (path, '/') == NULL)
> - {
> - err = store_typed_open (dev->path, 0, NULL, &arch_specific->store);
> - }
> - else
> - {
> - err = store_open (dev->path, 0, NULL, &arch_specific->store);
> - }
> -
> + err = store_typed_open (dev->path, 0, NULL, &arch_specific->store);
> if (err) {
> error_t rw_err = err;
>
> Why is this change needed in parted?
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-hurd