bug-fdisk
[Top][All Lists]
Advanced

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

[bug-fdisk] ./Configure libparted Check


From: Dunk
Subject: [bug-fdisk] ./Configure libparted Check
Date: Wed, 23 Mar 2011 11:57:16 +0000

All,

I had to change the ./configure script ( well a C module embedded in it ) to read

    if (sscanf(version, "%d.%d.%d", &major, &minor, &micro) != 3) {
        if ( !( major > 0 && minor > 0 ) )
        {
            printf("%s, bad version string\n", version);
            exit(1);
        }
        else
        {
            printf("Micro Version Not Set. Using %d.%d\n", major, minor );
        }

    }

instead of
    if (sscanf(version, "%d.%d.%d", &major, &minor, &micro) != 3) {
            printf("%s, bad version string\n", version);
            exit(1);
    }

Because my libparted version was returned as 2.3 with no MICRO component.

I am not sure if this change should be included in the ./configure script or if my setup is incorrect? This "hack" worked for me in any case. I hope it helps someone else.

How can I receive follow up on this "issue"? Is there a mailing list to subscribe to?

Duncan

PS. The change is open to be released under whichever current license the current code is under. I so hope that's not the LGPL. :)


reply via email to

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