fix patch once again, modprobe should work fine now

svn path=/nixpkgs/trunk/; revision=5968
This commit is contained in:
Armijn Hemel 2006-07-27 16:52:56 +00:00
parent 9ec98e5d19
commit 020ecb474f

View File

@ -146,7 +146,7 @@ diff -rc module-init-tools-3.2.2/modprobe.c module-init-tools-3.2.2.new/modprobe
! module_dir = "/lib/modules";
! }
!
! dirname = NOFAIL(malloc(strlen(buf.release) + sizeof(module_dir) + 1));
! dirname = NOFAIL(malloc(strlen(buf.release) + strlen(module_dir) + 1));
! sprintf(dirname, "%s/%s", module_dir, buf.release);
aliasfilename = NOFAIL(malloc(strlen(dirname)
+ sizeof("/modules.alias")));