pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Cygwin ksh93 1.0.8 patch
Posted by Anonymous on Fri 22nd Mar 2024 00:45
raw | new post
view followups (newest first): Cygwin ksh93 1.0.8 patch by Anonymous

  1. diff --git a/bin/package b/bin/package
  2. index 260f326b..191feaec 100755
  3. --- a/bin/package
  4. +++ b/bin/package
  5. @@ -2475,7 +2475,7 @@ capture() # file command ...
  6.                 0)      # Connect 'tee' to a FIFO instead of a pipe, so that we can obtain
  7.                         # the build's exit status and use it for $error_status
  8.                         rm -f $o.fifo
  9. -                       mkfifo -m 600 $o.fifo || exit
  10. +                       mkfifo  $o.fifo || exit
  11.                         (
  12.                                 sleep 1
  13.                                 # unlink early
  14. diff --git a/src/cmd/INIT/package.sh b/src/cmd/INIT/package.sh
  15. index 260f326b..191feaec 100644
  16. --- a/src/cmd/INIT/package.sh
  17. +++ b/src/cmd/INIT/package.sh
  18. @@ -2475,7 +2475,7 @@ capture() # file command ...
  19.                 0)      # Connect 'tee' to a FIFO instead of a pipe, so that we can obtain
  20.                         # the build's exit status and use it for $error_status
  21.                         rm -f $o.fifo
  22. -                       mkfifo -m 600 $o.fifo || exit
  23. +                       mkfifo  $o.fifo || exit
  24.                         (
  25.                                 sleep 1
  26.                                 # unlink early
  27. diff --git a/src/lib/libast/port/astconf.c b/src/lib/libast/port/astconf.c
  28. index b6b58027..3f9676ff 100644
  29. --- a/src/lib/libast/port/astconf.c
  30. +++ b/src/lib/libast/port/astconf.c
  31. @@ -1355,6 +1355,12 @@ astgetconf(const char* name, const char* path, const char* value, int flags, Err
  32.         Lookup_t        look;
  33.         Sfio_t*         tmp;
  34.  
  35. +#if 1
  36. +       /* hack for Cygwin */
  37. +       if (!strcmp(name, "PATH_LEADING_SLASHES")) {
  38. +               return "1";
  39. +       }
  40. +#endif
  41.         if (!name)
  42.         {
  43.                 if (path)

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at