Module: xenomai-3
Branch: master
Commit: 5b831a4e3af9f7bd8a9d78e617f613eea6ed2d77
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5b831a4e3af9f7bd8a9d78e617f613eea6ed2d77

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon May 11 21:16:30 2015 +0200

copperplate/regd: probe for umount command

---

 lib/copperplate/regd/regd.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/copperplate/regd/regd.c b/lib/copperplate/regd/regd.c
index 338a650..d86c855 100644
--- a/lib/copperplate/regd/regd.c
+++ b/lib/copperplate/regd/regd.c
@@ -288,6 +288,9 @@ static void unmount(const char *path)
        if (ret != -1 && WIFEXITED(ret) && WEXITSTATUS(ret) == 0)
                return;
 
+       if (access("/usr/bin/umount", X_OK))
+               return;
+
        ret = asprintf(&cmd, "/usr/bin/umount -l %s", path);
        if (ret < 0)
                return;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to