[git commit] modprobe-small: fix thinko in previous commit

Denys Vlasenko vda.linux at googlemail.com
Fri Feb 13 10:53:33 UTC 2015


commit: http://git.busybox.net/busybox/commit/?id=402afe1cc69ea505c9bf82ffe06e51ffecf694df
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 modutils/modprobe-small.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 5989659..ed177bb 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -578,7 +578,7 @@ static int already_loaded(const char *name)
 	}
 	fclose(fp);
 
-	return ret | 1;
+	return ret & 1;
 }
 #else
 #define already_loaded(name) 0


More information about the busybox-cvs mailing list