bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correct libparted patch


From: Harley D. Eades III
Subject: Correct libparted patch
Date: 14 Aug 2004 15:41:10 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

ams brought to my attention my patch for libparted was wrong.  Sorry these are 
my fist patches
I have ever made. :) Here it is corrected.

I am deeply Sorry
hde

--- /home/hde/parted-1.6.11/libparted/gnu.c     2004-04-24 22:34:00.000000000 
-0500
+++ /home/hde/PATCHED_parted-1.6.11/libparted/gnu.c     2004-08-13 
09:57:20.000000000 -0500
@@ -235,7 +235,16 @@
        arch_specific->consume = 1;
 
  retry_open:
-       err = store_typed_open (dev->path, 0, NULL, &arch_specific->store);
+       /* 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);
+         }
+
        if (err) {
                error_t rw_err = err;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]