You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. --- a/src/Makefile.am
  2. +++ b/src/Makefile.am
  3. @@ -32,8 +32,8 @@ mount_davfs_SOURCES = cache.c dav_coda.c
  4. kernel_interface.h mount_davfs.h webdav.h
  5. umount_davfs_SOURCES = umount_davfs.c defaults.h
  6. -AM_CFLAGS = -Wall -Werror=format-security \
  7. - -fstack-protector --param=ssp-buffer-size=4
  8. +AM_CFLAGS = -Wall -Werror=format-security
  9. +# -fstack-protector --param=ssp-buffer-size=4 -- removed ssp not supported in openwrt
  10. DEFS = -DPROGRAM_NAME=\"mount.davfs\" \
  11. -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \
  12. -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \
  13. --- a/src/cache.c
  14. +++ b/src/cache.c
  15. @@ -58,7 +58,7 @@
  16. #ifdef HAVE_SYS_TYPES_H
  17. #include <sys/types.h>
  18. #endif
  19. -#include <sys/xattr.h>
  20. +#include <linux/xattr.h>
  21. #include <ne_alloc.h>
  22. #include <ne_string.h>
  23. --- a/src/webdav.c
  24. +++ b/src/webdav.c
  25. @@ -2033,7 +2033,7 @@ ssl_verify(void *userdata, int failures,
  26. len = getline(&s, &n, stdin);
  27. if (len < 0)
  28. abort();
  29. - if (rpmatch(s) > 0)
  30. + if ((s[0]=='y' || s[0]=='Y') > 0)
  31. ret = 0;
  32. free(s);
  33. }