]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Merge Erics suggestion of looking in /usr/sbin too (like lvm.c).
authorNathan Scott <nathans@sgi.com>
Fri, 30 Apr 2004 04:05:14 +0000 (04:05 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 30 Apr 2004 04:05:14 +0000 (04:05 +0000)
libdisk/dm.c

index 220bb36c8aa89804c479966f2704abc982b2e13f..cec782ff8ef561650d3ab169e60b5cb1b7cd6df3 100644 (file)
@@ -60,6 +60,8 @@ dm_get_subvol_stripe(
        /* Quest for dmsetup */
        if (!access("/usr/local/sbin/dmsetup", R_OK|X_OK))
                largv[0] = "/usr/local/sbin/dmsetup";
+       else if (!access("/usr/sbin/dmsetup", R_OK|X_OK))
+               largv[0] = "/usr/sbin/dmsetup";
        else if (!access("/sbin/dmsetup", R_OK|X_OK))
                largv[0] = "/sbin/dmsetup";
        else {