patch-utils_mountd_cache_c 579 B

12345678910111213141516171819202122
  1. --- nfs-utils-1.3.0.orig/utils/mountd/cache.c 2014-03-25 16:12:07.000000000 +0100
  2. +++ nfs-utils-1.3.0/utils/mountd/cache.c 2014-05-17 21:57:07.653571824 +0200
  3. @@ -11,6 +11,10 @@
  4. #include <config.h>
  5. #endif
  6. +#ifndef _GNU_SOURCE
  7. +#define _GNU_SOURCE
  8. +#endif
  9. +
  10. #include <sys/types.h>
  11. #include <sys/select.h>
  12. #include <sys/stat.h>
  13. @@ -1339,7 +1343,7 @@ static int cache_export_ent(char *domain
  14. */
  15. struct stat stb;
  16. size_t l = strlen(exp->e_path);
  17. - __dev_t dev;
  18. + dev_t dev;
  19. if (strlen(path) <= l || path[l] != '/' ||
  20. strncmp(exp->e_path, path, l) != 0)