patch-index_convert_c 668 B

12345678910111213
  1. $OpenBSD: patch-index_convert_c,v 1.2 2015/02/17 22:52:51 naddy Exp $
  2. --- index/convert.c.orig Thu Nov 21 21:42:06 1996
  3. +++ index/convert.c Tue Feb 17 23:52:13 2015
  4. @@ -791,7 +791,7 @@ change_format(InputFilenames, ReadIntoMemory, InputTyp
  5. sprintf(s, "mv -f %s %s", outname, realname);
  6. if (system(s) == -1) fprintf(stderr, "Errno=%d -- could not execute: %s\n", errno, s);
  7. #else
  8. - if (rename(outname, realname) == -1) fprintf(stderr, "Errno=%d -- could not rename %s as %s\n", outname, realname);
  9. + if (rename(outname, realname) == -1) fprintf(stderr, "Errno=%d -- could not rename %s as %s\n", errno, outname, realname);
  10. #endif
  11. }
  12. unlink(outname);