2
1

coreutils-7.4-rename-m4-fix.patch 1.0 KB

12345678910111213141516171819202122232425
  1. Commit 7fcb389fb4cd5ba26e330fef991ffdc05392f289 from gnulib, to fix
  2. the rename bugs detection macros.
  3. ---
  4. m4/rename.m4 | 4 ++--
  5. 1 file changed, 2 insertions(+), 2 deletions(-)
  6. Index: coreutils-7.4/m4/rename.m4
  7. ===================================================================
  8. --- coreutils-7.4.orig/m4/rename.m4
  9. +++ coreutils-7.4/m4/rename.m4
  10. @@ -51,12 +51,12 @@
  11. AC_LIBOBJ([rename])
  12. AC_DEFINE([rename], [rpl_rename],
  13. [Define to rpl_rename if the replacement function should be used.])
  14. - if test $gl_cv_func_rename_trailing_slash_bug; then
  15. + if test $gl_cv_func_rename_trailing_slash_bug = yes; then
  16. AC_DEFINE([RENAME_TRAILING_SLASH_BUG], [1],
  17. [Define if rename does not work for source file names with a trailing
  18. slash, like the one from SunOS 4.1.1_U1.])
  19. fi
  20. - if test $gl_cv_func_rename_dest_exists_bug; then
  21. + if test $gl_cv_func_rename_dest_exists_bug = yes; then
  22. AC_DEFINE([RENAME_DEST_EXISTS_BUG], [1],
  23. [Define if rename does not work when the destination file exists,
  24. as on Windows.])