Michael Tokarev, mjt at tls dot msk dot ru writes:
authorEric Andersen <andersen@codepoet.org>
Tue, 6 Apr 2004 12:05:04 +0000 (12:05 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 6 Apr 2004 12:05:04 +0000 (12:05 -0000)
alias 'off' parsing fix.
It is not
 alias off module
it is
 alias module off

modutils/modprobe.c

index 2b90eb0198180bc0712a9fac2b3b0cbef98ee4a9..7078af22069ef689342b2b6c69c81ed60106262c 100644 (file)
@@ -315,7 +315,7 @@ static struct dep_t *build_dep ( void )
                                        current-> m_module  = bb_xstrdup ( alias );
                                        current-> m_isalias = 1;
 
-                                       if (( strcmp ( alias, "off" ) == 0 ) || ( strcmp ( alias, "null" ) == 0 )) {
+                                       if (( strcmp ( mod, "off" ) == 0 ) || ( strcmp ( mod, "null" ) == 0 )) {
                                                current-> m_depcnt = 0;
                                                current-> m_deparr = 0;
                                        }