patch-osunix_ostext_c 428 B

12345678910111213141516
  1. $OpenBSD: patch-osunix_ostext_c,v 1.1 2017/04/17 21:43:15 sthen Exp $
  2. Fix an obvious typo.
  3. --- osunix/ostext.c.orig Tue Oct 21 04:32:26 2003
  4. +++ osunix/ostext.c Tue Aug 16 19:52:22 2016
  5. @@ -46,7 +46,7 @@ int txtopen(filename, rwa, binary)
  6. fd = open(filename, mode, 0666);
  7. if (fd < 0)
  8. {
  9. - if (errno == EPERM || EACCES)
  10. + if (errno == EPERM || errno == EACCES)
  11. return -1;
  12. else if (errno == EISDIR)
  13. return -2;