coreutils.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --- src/stat.c.orig Sun Dec 1 10:48:21 2002
  2. +++ src/stat.c Sun Jan 12 11:30:01 2003
  3. @@ -43,6 +43,12 @@
  4. # endif
  5. #endif
  6. +/* FreeBSD 5.0 need this for struct statfs */
  7. +#if HAVE_SYS_MOUNT_H
  8. +# include <sys/param.h>
  9. +# include <sys/mount.h>
  10. +#endif
  11. +
  12. #include "system.h"
  13. #include "closeout.h"
  14. --- src/test.c.orig Mon Feb 10 10:19:09 2003
  15. +++ src/test.c Sun Feb 23 20:44:50 2003
  16. @@ -139,7 +139,7 @@
  17. /* Do the same thing access(2) does, but use the effective uid and gid. */
  18. static int
  19. -eaccess (char const *file, int mode)
  20. +my_eaccess (char const *file, int mode)
  21. {
  22. static int have_ids;
  23. static uid_t uid, euid;
  24. @@ -172,7 +172,7 @@
  25. return result;
  26. }
  27. #else
  28. -# define eaccess(F, M) euidaccess (F, M)
  29. +# define my_eaccess(F, M) euidaccess (F, M)
  30. #endif
  31. /* Increment our position in the argument list. Check that we're not
  32. @@ -635,17 +635,17 @@
  33. case 'r': /* file is readable? */
  34. unary_advance ();
  35. - value = -1 != eaccess (argv[pos - 1], R_OK);
  36. + value = -1 != my_eaccess (argv[pos - 1], R_OK);
  37. return (TRUE == value);
  38. case 'w': /* File is writable? */
  39. unary_advance ();
  40. - value = -1 != eaccess (argv[pos - 1], W_OK);
  41. + value = -1 != my_eaccess (argv[pos - 1], W_OK);
  42. return (TRUE == value);
  43. case 'x': /* File is executable? */
  44. unary_advance ();
  45. - value = -1 != eaccess (argv[pos - 1], X_OK);
  46. + value = -1 != my_eaccess (argv[pos - 1], X_OK);
  47. return (TRUE == value);
  48. case 'O': /* File is owned by you? */
  49. --- src/nice.c.orig 2003-08-10 19:43:35.000000000 +0200
  50. +++ src/nice.c 2003-09-10 20:03:27.000000000 +0200
  51. @@ -23,6 +23,7 @@
  52. #include <assert.h>
  53. #include <getopt.h>
  54. +#include <sys/time.h>
  55. #include <sys/types.h>
  56. #include "system.h"