]> git.proxmox.com Git - pve-cluster.git/commitdiff
system() is declared to warn on an unused result, replacing this with umount2(2)...
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 5 May 2015 07:57:11 +0000 (09:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 5 May 2015 10:22:31 +0000 (12:22 +0200)
data/src/pmxcfs.c

index d74d2c2cae33c732c6e915af9b7c7356766eac26..a4611657a2f4ef37bd664ea3e1fdf1794dca11fc 100644 (file)
@@ -886,7 +886,7 @@ int main(int argc, char *argv[])
 
        root_plug = (cfs_plug_t *)bplug;
 
-       system("umount -f " CFSDIR " >/dev/null 2>&1");
+       umount2(CFSDIR, MNT_FORCE);
 
        mkdir(CFSDIR, 0755);