1
0

patch-src_kernel_interface_c 886 B

12345678910111213141516171819202122232425262728293031
  1. $Id$
  2. --- davfs2-1.3.3.orig/src/kernel_interface.c 2008-04-05 20:43:04.000000000 +0200
  3. +++ davfs2-1.3.3/src/kernel_interface.c 2008-12-08 00:09:01.000000000 +0100
  4. @@ -23,7 +23,6 @@
  5. #include "config.h"
  6. -#include <argz.h>
  7. #include <errno.h>
  8. #include <error.h>
  9. #include <fcntl.h>
  10. @@ -173,7 +172,8 @@ static int init_coda(int *dev, dav_run_m
  11. }
  12. if (*dev <= 0) {
  13. - system("/sbin/modprobe coda &>/dev/null");
  14. + system("/sbin/insmod coda");
  15. + sleep(1);
  16. minor = 0;
  17. while (*dev <= 0 && minor < MAX_CODADEVS) {
  18. char *path;
  19. @@ -240,7 +240,8 @@ static int init_fuse(int *dev, dav_run_m
  20. *dev = open(path, O_RDWR | O_NONBLOCK);
  21. if (*dev <= 0) {
  22. - system("/sbin/modprobe fuse &>/dev/null");
  23. + system("/sbin/insmod fuse");
  24. + sleep(1);
  25. *dev = open(path, O_RDWR | O_NONBLOCK);
  26. }
  27. if (*dev <= 0) {