]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod-module: probe: remove useless KMOD_PROBE_STOP_ON_COMMAND
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 31 Jan 2012 14:05:36 +0000 (12:05 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 31 Jan 2012 16:08:57 +0000 (14:08 -0200)
libkmod/libkmod-module.c
libkmod/libkmod.h

index 948690a689ba5fd79e470e9e9e3382535af4dd88..a4878fadb8341c2af271e8a95a734ebb1fdab6ae 100644 (file)
@@ -1097,11 +1097,10 @@ static int kmod_module_get_probe_list(struct kmod_module *mod,
  * Insert a module in Linux kernel resolving dependencies, soft dependencies,
  * install commands and applying blacklist.
  *
- * If @run_install is NULL, and the flag KMOD_PROBE_STOP_ON_COMMANDS is not
- * given, this function will fork and exec by calling system(3). Don't pass a
- * NULL argument in @run_install if your binary is setuid/setgid (see warning
- * in system(3)). If you need control over the execution of an install
- * command, give a callback function instead.
+ * If @run_install is NULL, this function will fork and exec by calling
+ * system(3). Don't pass a NULL argument in @run_install if your binary is
+ * setuid/setgid (see warning in system(3)). If you need control over the
+ * execution of an install command, give a callback function instead.
  *
  * Returns: 0 on success, > 0 if stopped by a reason given in @flags or < 0 on
  * failure.
@@ -1160,14 +1159,6 @@ KMOD_EXPORT int kmod_module_probe_insert_module(struct kmod_module *mod,
                                        m == mod ? extra_options : NULL);
 
                if (cmd != NULL && !m->ignorecmd) {
-                       if (flags & KMOD_PROBE_STOP_ON_COMMAND) {
-                               DBG(mod->ctx, "Stopping on '%s': "
-                                       "install command\n", m->name);
-                               err = KMOD_PROBE_STOP_ON_COMMAND;
-                               free(options);
-                               break;
-                       }
-
                        if (print_action != NULL)
                                print_action(m, true, options ?: "");
 
index a530a29707f3a43af85ca6daca8a7c38a8584d2b..1d96d2a9f24e1eb11769932b8778ca027ded9e92 100644 (file)
@@ -135,7 +135,6 @@ enum kmod_probe {
        /* codes below can be used in return value, too */
        KMOD_PROBE_APPLY_BLACKLIST_ALL =        0x10000,
        KMOD_PROBE_APPLY_BLACKLIST =            0x20000,
-       KMOD_PROBE_STOP_ON_COMMAND =            0x40000,
 };
 
 /*