pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS

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

    
11
diff --git a/bin/package b/bin/package
22
index 260f326b..191feaec 100755
33
--- a/bin/package
44
+++ b/bin/package
55
@@ -2475,7 +2475,7 @@ capture() # file command ...
66
 		0)	# Connect 'tee' to a FIFO instead of a pipe, so that we can obtain
77
 			# the build's exit status and use it for $error_status
88
 			rm -f $o.fifo
99
-			mkfifo -m 600 $o.fifo || exit
1010
+			mkfifo  $o.fifo || exit
1111
 			(
1212
 				sleep 1
1313
 				# unlink early
1414
diff --git a/src/cmd/INIT/package.sh b/src/cmd/INIT/package.sh
1515
index 260f326b..191feaec 100644
1616
--- a/src/cmd/INIT/package.sh
1717
+++ b/src/cmd/INIT/package.sh
1818
@@ -2475,7 +2475,7 @@ capture() # file command ...
1919
 		0)	# Connect 'tee' to a FIFO instead of a pipe, so that we can obtain
2020
 			# the build's exit status and use it for $error_status
2121
 			rm -f $o.fifo
2222
-			mkfifo -m 600 $o.fifo || exit
2323
+			mkfifo  $o.fifo || exit
2424
 			(
2525
 				sleep 1
2626
 				# unlink early
2727
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
2929
--- a/src/lib/libast/port/astconf.c
3030
+++ 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
3232
 	Lookup_t	look;
3333
 	Sfio_t*		tmp;
3434
3535
+#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)
5656

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