Difference between
modified post 7cc3 by Anonymous on Fri 22nd Mar 2024 09:37
original post f01b by Anonymous on Fri 22nd Mar 2024 00:45
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | diff --git a/bin/package b/bin/package | |
| 2 | 2 | index 260f326b..191feaec 100755 | |
| 3 | 3 | --- a/bin/package | |
| 4 | 4 | +++ b/bin/package | |
| 5 | 5 | @@ -2475,7 +2475,7 @@ capture() # file command ... | |
| 6 | 6 | 0) # Connect 'tee' to a FIFO instead of a pipe, so that we can obtain | |
| 7 | 7 | # the build's exit status and use it for $error_status | |
| 8 | 8 | rm -f $o.fifo | |
| 9 | 9 | - mkfifo -m 600 $o.fifo || exit | |
| 10 | 10 | + mkfifo $o.fifo || exit | |
| 11 | 11 | ( | |
| 12 | 12 | sleep 1 | |
| 13 | 13 | # unlink early | |
| 14 | 14 | diff --git a/src/cmd/INIT/package.sh b/src/cmd/INIT/package.sh | |
| 15 | 15 | index 260f326b..191feaec 100644 | |
| 16 | 16 | --- a/src/cmd/INIT/package.sh | |
| 17 | 17 | +++ b/src/cmd/INIT/package.sh | |
| 18 | 18 | @@ -2475,7 +2475,7 @@ capture() # file command ... | |
| 19 | 19 | 0) # Connect 'tee' to a FIFO instead of a pipe, so that we can obtain | |
| 20 | 20 | # the build's exit status and use it for $error_status | |
| 21 | 21 | rm -f $o.fifo | |
| 22 | 22 | - mkfifo -m 600 $o.fifo || exit | |
| 23 | 23 | + mkfifo $o.fifo || exit | |
| 24 | 24 | ( | |
| 25 | 25 | sleep 1 | |
| 26 | 26 | # unlink early | |
| 27 | 27 | diff --git a/src/lib/libast/port/astconf.c b/src/lib/libast/port/astconf.c | |
| 28 | - | index b6b58027..3f9676ff 100644 | |
| 28 | + | index b6b58027..e6724481 100644 | |
| 29 | 29 | --- a/src/lib/libast/port/astconf.c | |
| 30 | 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 | |
| 31 | + | @@ -1355,6 +1355,24 @@ astgetconf(const char* name, const char* path, const char* value, int flags, Err | |
| 32 | 32 | Lookup_t look; | |
| 33 | 33 | Sfio_t* tmp; | |
| 34 | 34 | ||
| 35 | 35 | +#if 1 | |
| 36 | - | + /* hack for Cygwin */ | |
| 36 | + | + /* | |
| 37 | - | + if (!strcmp(name, "PATH_LEADING_SLASHES")) { | |
| 37 | + | + * hack for Cygwin to make Cygwin UNC paths (with leading | |
| 38 | - | + return "1"; | |
| 38 | + | + * two slashes) work. | |
| 39 | - | + } | |
| 39 | + | + * | |
| 40 | - | +#endif | |
| 40 | + | + * Testcase: | |
| 41 | - | if (!name) | |
| 41 | + | + * cd into UNC path, print "pwd -P", result must start with | |
| 42 | - | { | |
| 42 | + | + * "//<hostname>/<path>" | |
| 43 | - | if (path) | |
| 43 | + | + * ---- snip ---- | |
| 44 | - | ||
| 44 | + | + * $ bash -c 'cd "//derfw1fs10.global.loc/rfw" ; path_to_kshdir/ksh.exe -c "pwd -P ; true" ; true' | |
| 45 | - | ||
| 45 | + | + * //derfw1fs10.global.loc/rfw | |
| 46 | - | ||
| 46 | + | + * ---- snip ---- | |
| 47 | - | ||
| 47 | + | + * | |
| 48 | - | ||
| 48 | + | + */ | |
| 49 | - | ||
| 49 | + | + if (!strcmp(name, "PATH_LEADING_SLASHES")) { | |
| 50 | - | ||
| 50 | + | + return "1"; | |
| 51 | - | ||
| 51 | + | + } | |
| 52 | - | ||
| 52 | + | +#endif | |
| 53 | - | ||
| 53 | + | if (!name) | |
| 54 | - | ||
| 54 | + | { | |
| 55 | - | ||
| 55 | + | if (path) | |
| 56 | 56 |
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.
nrubsig.kpaste.net RSS