pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Cygwin ksh93 1.0.8 patch
Posted by Anonymous on Fri 22nd Mar 2024 09:37
raw | new post
modification of post by Anonymous (view diff)

  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..e6724481 100644
  29. --- a/src/lib/libast/port/astconf.c
  30. +++ b/src/lib/libast/port/astconf.c
  31. @@ -1355,6 +1355,24 @@ 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. +       /*
  37. +        * hack for Cygwin to make Cygwin UNC paths (with leading
  38. +        * two slashes) work.
  39. +        *
  40. +        * Testcase:
  41. +        * cd into UNC path, print "pwd -P", result must start with
  42. +        * "//<hostname>/<path>"
  43. +        * ---- snip ----
  44. +        * $ bash -c 'cd "//derfw1fs10.global.loc/rfw" ; path_to_kshdir/ksh.exe -c "pwd -P ; true" ; true'
  45. +        * //derfw1fs10.global.loc/rfw
  46. +        * ---- snip ----
  47. +        *
  48. +        */
  49. +       if (!strcmp(name, "PATH_LEADING_SLASHES")) {
  50. +               return "1";
  51. +       }
  52. +#endif
  53.         if (!name)
  54.         {
  55.                 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