diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-20 11:30:28 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-20 11:30:28 +0000 |
commit | 9dbd94421304e4bfca9dfb4883a7299b3fb2fe27 (patch) | |
tree | 90608280101218f60c7d9181b913e92ba895799d | |
parent | 87dd90aa8ab4c88d3dee025044a419d8f2f49cd7 (diff) | |
download | busybox-w32-9dbd94421304e4bfca9dfb4883a7299b3fb2fe27.tar.gz busybox-w32-9dbd94421304e4bfca9dfb4883a7299b3fb2fe27.tar.bz2 busybox-w32-9dbd94421304e4bfca9dfb4883a7299b3fb2fe27.zip |
fix accumulated whitespace and indentation damage
git-svn-id: svn://busybox.net/trunk/busybox@18176 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | archival/gzip.c | 2 | ||||
-rw-r--r-- | coreutils/cp.c | 2 | ||||
-rw-r--r-- | coreutils/id.c | 38 | ||||
-rw-r--r-- | coreutils/install.c | 4 | ||||
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | coreutils/mv.c | 2 | ||||
-rw-r--r-- | coreutils/stat.c | 4 | ||||
-rw-r--r-- | docs/cgi/env.html | 10 | ||||
-rw-r--r-- | docs/cgi/interface.html | 2 | ||||
-rw-r--r-- | docs/draft-coar-cgi-v11-03-clean.html | 146 | ||||
-rw-r--r-- | include/libbb.h | 4 | ||||
-rw-r--r-- | libbb/copy_file.c | 4 | ||||
-rw-r--r-- | libbb/selinux_common.c | 2 | ||||
-rw-r--r-- | miscutils/less.c | 2 | ||||
-rw-r--r-- | selinux/chcon.c | 2 | ||||
-rw-r--r-- | shell/ash_test/ash-arith/arith-for.right | 4 | ||||
-rwxr-xr-x | shell/ash_test/ash-arith/arith-for.testsx | 2 | ||||
-rwxr-xr-x | shell/ash_test/ash-arith/arith.tests | 4 | ||||
-rwxr-xr-x | shell/ash_test/ash-heredoc/heredoc.tests | 2 | ||||
-rwxr-xr-x | shell/ash_test/run-all | 2 | ||||
-rw-r--r-- | shell/msh.c | 46 | ||||
-rwxr-xr-x | testsuite/bunzip2.tests | 2 | ||||
-rw-r--r-- | util-linux/fdisk_osf.c | 2 |
23 files changed, 145 insertions, 145 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index c2333e3b1..b8f576500 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -2019,7 +2019,7 @@ static | |||
2019 | USE_DESKTOP(long long) int pack_gzip(void) | 2019 | USE_DESKTOP(long long) int pack_gzip(void) |
2020 | { | 2020 | { |
2021 | struct stat s; | 2021 | struct stat s; |
2022 | 2022 | ||
2023 | clear_bufs(); | 2023 | clear_bufs(); |
2024 | s.st_ctime = 0; | 2024 | s.st_ctime = 0; |
2025 | fstat(STDIN_FILENO, &s); | 2025 | fstat(STDIN_FILENO, &s); |
diff --git a/coreutils/cp.c b/coreutils/cp.c index 64cf63797..a80e0d286 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -51,7 +51,7 @@ int cp_main(int argc, char **argv) | |||
51 | if (flags & OPT_H) ... // deref command-line params only | 51 | if (flags & OPT_H) ... // deref command-line params only |
52 | */ | 52 | */ |
53 | 53 | ||
54 | #if ENABLE_SELINUX | 54 | #if ENABLE_SELINUX |
55 | if (flags & FILEUTILS_PRESERVE_SECURITY_CONTEXT) { | 55 | if (flags & FILEUTILS_PRESERVE_SECURITY_CONTEXT) { |
56 | selinux_or_die(); | 56 | selinux_or_die(); |
57 | } | 57 | } |
diff --git a/coreutils/id.c b/coreutils/id.c index e183402fa..8a604195d 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -48,7 +48,7 @@ int id_main(int argc, char **argv) | |||
48 | unsigned long flags; | 48 | unsigned long flags; |
49 | short status; | 49 | short status; |
50 | #if ENABLE_SELINUX | 50 | #if ENABLE_SELINUX |
51 | security_context_t scontext; | 51 | security_context_t scontext; |
52 | #endif | 52 | #endif |
53 | /* Don't allow -n -r -nr -ug -rug -nug -rnug */ | 53 | /* Don't allow -n -r -nr -ug -rug -nug -rnug */ |
54 | /* Don't allow more than one username */ | 54 | /* Don't allow more than one username */ |
@@ -78,26 +78,26 @@ int id_main(int argc, char **argv) | |||
78 | puts((flags & JUST_USER) ? bb_getpwuid(NULL, uid, -1 ) : bb_getgrgid(NULL, gid, -1 )); | 78 | puts((flags & JUST_USER) ? bb_getpwuid(NULL, uid, -1 ) : bb_getgrgid(NULL, gid, -1 )); |
79 | } else { | 79 | } else { |
80 | if (flags & JUST_USER) { | 80 | if (flags & JUST_USER) { |
81 | printf("%u\n", uid); | 81 | printf("%u\n", uid); |
82 | } | 82 | } |
83 | if (flags & JUST_GROUP) { | 83 | if (flags & JUST_GROUP) { |
84 | printf("%u\n", gid); | 84 | printf("%u\n", gid); |
85 | } | 85 | } |
86 | } | 86 | } |
87 | 87 | ||
88 | #if ENABLE_SELINUX | 88 | #if ENABLE_SELINUX |
89 | if (flags & JUST_CONTEXT) { | 89 | if (flags & JUST_CONTEXT) { |
90 | selinux_or_die(); | 90 | selinux_or_die(); |
91 | if (argc - optind == 1) { | 91 | if (argc - optind == 1) { |
92 | bb_error_msg_and_die("user name can't be passed with -Z"); | 92 | bb_error_msg_and_die("user name can't be passed with -Z"); |
93 | } | 93 | } |
94 | 94 | ||
95 | if (getcon(&scontext)) { | 95 | if (getcon(&scontext)) { |
96 | bb_error_msg_and_die("can't get process context"); | 96 | bb_error_msg_and_die("can't get process context"); |
97 | } | 97 | } |
98 | printf("%s\n", scontext); | 98 | printf("%s\n", scontext); |
99 | } | 99 | } |
100 | #endif | 100 | #endif |
101 | /* exit */ | 101 | /* exit */ |
102 | fflush_stdout_and_exit(EXIT_SUCCESS); | 102 | fflush_stdout_and_exit(EXIT_SUCCESS); |
103 | } | 103 | } |
diff --git a/coreutils/install.c b/coreutils/install.c index a58a23b6e..c80be01ff 100644 --- a/coreutils/install.c +++ b/coreutils/install.c | |||
@@ -41,7 +41,7 @@ static void setdefaultfilecon(const char *path) { | |||
41 | 41 | ||
42 | if (!is_selinux_enabled()) { | 42 | if (!is_selinux_enabled()) { |
43 | return; | 43 | return; |
44 | } | 44 | } |
45 | if (lstat(path, &s) != 0) { | 45 | if (lstat(path, &s) != 0) { |
46 | return; | 46 | return; |
47 | } | 47 | } |
@@ -101,7 +101,7 @@ int install_main(int argc, char **argv) | |||
101 | /* -c exists for backwards compatibility, it's needed */ | 101 | /* -c exists for backwards compatibility, it's needed */ |
102 | 102 | ||
103 | flags = getopt32(argc, argv, "cdpsg:m:o:" USE_SELINUX("Z:"), &gid_str, &mode_str, &uid_str USE_SELINUX(, &scontext)); | 103 | flags = getopt32(argc, argv, "cdpsg:m:o:" USE_SELINUX("Z:"), &gid_str, &mode_str, &uid_str USE_SELINUX(, &scontext)); |
104 | 104 | ||
105 | #if ENABLE_SELINUX | 105 | #if ENABLE_SELINUX |
106 | if (flags & OPT_PRESERVE_SECURITY_CONTEXT) { | 106 | if (flags & OPT_PRESERVE_SECURITY_CONTEXT) { |
107 | use_default_selinux_context = 0; | 107 | use_default_selinux_context = 0; |
diff --git a/coreutils/ls.c b/coreutils/ls.c index 2e68eb848..34836ee29 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -770,7 +770,7 @@ static const unsigned opt_flags[] = { | |||
770 | #if ENABLE_FEATURE_AUTOWIDTH | 770 | #if ENABLE_FEATURE_AUTOWIDTH |
771 | 0, 0, /* T, w - ignored */ | 771 | 0, 0, /* T, w - ignored */ |
772 | #endif | 772 | #endif |
773 | #if ENABLE_SELINUX | 773 | #if ENABLE_SELINUX |
774 | LIST_MODEBITS|LIST_ID_NAME|LIST_CONTEXT, /* Z */ | 774 | LIST_MODEBITS|LIST_ID_NAME|LIST_CONTEXT, /* Z */ |
775 | #endif | 775 | #endif |
776 | (1U<<31) | 776 | (1U<<31) |
diff --git a/coreutils/mv.c b/coreutils/mv.c index 64cae965b..c08d2327c 100644 --- a/coreutils/mv.c +++ b/coreutils/mv.c | |||
@@ -118,7 +118,7 @@ DO_MOVE: | |||
118 | copy_flag = FILEUTILS_RECUR | FILEUTILS_PRESERVE_STATUS; | 118 | copy_flag = FILEUTILS_RECUR | FILEUTILS_PRESERVE_STATUS; |
119 | #if ENABLE_SELINUX | 119 | #if ENABLE_SELINUX |
120 | copy_flag |= FILEUTILS_PRESERVE_SECURITY_CONTEXT; | 120 | copy_flag |= FILEUTILS_PRESERVE_SECURITY_CONTEXT; |
121 | #endif | 121 | #endif |
122 | if ((copy_file(*argv, dest, copy_flag) >= 0) && | 122 | if ((copy_file(*argv, dest, copy_flag) >= 0) && |
123 | (remove_file(*argv, FILEUTILS_RECUR | FILEUTILS_FORCE) >= 0)) { | 123 | (remove_file(*argv, FILEUTILS_RECUR | FILEUTILS_FORCE) >= 0)) { |
124 | goto RET_0; | 124 | goto RET_0; |
diff --git a/coreutils/stat.c b/coreutils/stat.c index 37a924057..a2cdbfb29 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -416,7 +416,7 @@ static int do_statfs(char const *filename, char const *format) | |||
416 | format = (flags & OPT_TERSE | 416 | format = (flags & OPT_TERSE |
417 | ? (flags & OPT_SELINUX ? "%n %i %l %t %s %b %f %a %c %d %C\n": | 417 | ? (flags & OPT_SELINUX ? "%n %i %l %t %s %b %f %a %c %d %C\n": |
418 | "%n %i %l %t %s %b %f %a %c %d\n") | 418 | "%n %i %l %t %s %b %f %a %c %d\n") |
419 | : (flags & OPT_SELINUX ? | 419 | : (flags & OPT_SELINUX ? |
420 | " File: \"%n\"\n" | 420 | " File: \"%n\"\n" |
421 | " ID: %-8i Namelen: %-7l Type: %T\n" | 421 | " ID: %-8i Namelen: %-7l Type: %T\n" |
422 | "Block size: %-10s\n" | 422 | "Block size: %-10s\n" |
@@ -531,7 +531,7 @@ static int do_stat(char const *filename, char const *format) | |||
531 | } | 531 | } |
532 | #else | 532 | #else |
533 | if (flags & OPT_TERSE) { | 533 | if (flags & OPT_TERSE) { |
534 | format = (flags & OPT_SELINUX ? | 534 | format = (flags & OPT_SELINUX ? |
535 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o %C\n": | 535 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o %C\n": |
536 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o\n"); | 536 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o\n"); |
537 | } else { | 537 | } else { |
diff --git a/docs/cgi/env.html b/docs/cgi/env.html index 961671aaa..924026b3e 100644 --- a/docs/cgi/env.html +++ b/docs/cgi/env.html | |||
@@ -16,7 +16,7 @@ The following environment variables are not request-specific and are | |||
16 | set for all requests: </p><p> | 16 | set for all requests: </p><p> |
17 | 17 | ||
18 | </p><ul> | 18 | </p><ul> |
19 | <li> <code>SERVER_SOFTWARE</code> <p> | 19 | <li> <code>SERVER_SOFTWARE</code> <p> |
20 | 20 | ||
21 | The name and version of the information server software answering | 21 | The name and version of the information server software answering |
22 | the request (and running the gateway). Format: name/version </p><p> | 22 | the request (and running the gateway). Format: name/version </p><p> |
@@ -25,7 +25,7 @@ set for all requests: </p><p> | |||
25 | The server's hostname, DNS alias, or IP address as it would appear | 25 | The server's hostname, DNS alias, or IP address as it would appear |
26 | in self-referencing URLs. </p><p> | 26 | in self-referencing URLs. </p><p> |
27 | 27 | ||
28 | </p></li><li> <code>GATEWAY_INTERFACE</code> <p> | 28 | </p></li><li> <code>GATEWAY_INTERFACE</code> <p> |
29 | The revision of the CGI specification to which this server | 29 | The revision of the CGI specification to which this server |
30 | complies. Format: CGI/revision</p><p> | 30 | complies. Format: CGI/revision</p><p> |
31 | 31 | ||
@@ -48,7 +48,7 @@ fulfilled by the gateway program: <p> | |||
48 | The method with which the request was made. For HTTP, this is | 48 | The method with which the request was made. For HTTP, this is |
49 | "GET", "HEAD", "POST", etc. </p><p> | 49 | "GET", "HEAD", "POST", etc. </p><p> |
50 | 50 | ||
51 | </p></li><li> <code>PATH_INFO</code> <p> | 51 | </p></li><li> <code>PATH_INFO</code> <p> |
52 | The extra path information, as given by the client. In other | 52 | The extra path information, as given by the client. In other |
53 | words, scripts can be accessed by their virtual pathname, followed | 53 | words, scripts can be accessed by their virtual pathname, followed |
54 | by extra information at the end of this path. The extra | 54 | by extra information at the end of this path. The extra |
@@ -64,7 +64,7 @@ fulfilled by the gateway program: <p> | |||
64 | A virtual path to the script being executed, used for | 64 | A virtual path to the script being executed, used for |
65 | self-referencing URLs. </p><p> | 65 | self-referencing URLs. </p><p> |
66 | 66 | ||
67 | </p></li><li> <a name="query"><code>QUERY_STRING</code></a> <p> | 67 | </p></li><li> <a name="query"><code>QUERY_STRING</code></a> <p> |
68 | The information which follows the ? in the <a href="http://www.ncsa.uiuc.edu/demoweb/url-primer.html">URL</a> | 68 | The information which follows the ? in the <a href="http://www.ncsa.uiuc.edu/demoweb/url-primer.html">URL</a> |
69 | which referenced this script. This is the query information. It | 69 | which referenced this script. This is the query information. It |
70 | should not be decoded in any fashion. This variable should always | 70 | should not be decoded in any fashion. This variable should always |
@@ -82,7 +82,7 @@ fulfilled by the gateway program: <p> | |||
82 | protects, this is the protocol-specific authentication method used | 82 | protects, this is the protocol-specific authentication method used |
83 | to validate the user. </p><p> | 83 | to validate the user. </p><p> |
84 | 84 | ||
85 | </p></li><li> <code>REMOTE_USER</code> <p> | 85 | </p></li><li> <code>REMOTE_USER</code> <p> |
86 | If the server supports user authentication, and the script is | 86 | If the server supports user authentication, and the script is |
87 | protected, this is the username they have authenticated as. </p><p> | 87 | protected, this is the username they have authenticated as. </p><p> |
88 | </p></li><li> <code>REMOTE_IDENT</code> <p> | 88 | </p></li><li> <code>REMOTE_IDENT</code> <p> |
diff --git a/docs/cgi/interface.html b/docs/cgi/interface.html index 33f02881b..ea73ce3a2 100644 --- a/docs/cgi/interface.html +++ b/docs/cgi/interface.html | |||
@@ -12,7 +12,7 @@ The server and the CGI script communicate in four major ways. Each of | |||
12 | the following is a hotlink to graphic detail.</p><p> | 12 | the following is a hotlink to graphic detail.</p><p> |
13 | 13 | ||
14 | </p><ul> | 14 | </p><ul> |
15 | <li> <a href="env.html">Environment variables</a> | 15 | <li> <a href="env.html">Environment variables</a> |
16 | </li><li> <a href="cl.html">The command line</a> | 16 | </li><li> <a href="cl.html">The command line</a> |
17 | </li><li> <a href="in.html">Standard input</a> | 17 | </li><li> <a href="in.html">Standard input</a> |
18 | </li><li> <a href="out.html">Standard output</a> | 18 | </li><li> <a href="out.html">Standard output</a> |
diff --git a/docs/draft-coar-cgi-v11-03-clean.html b/docs/draft-coar-cgi-v11-03-clean.html index 37835500c..d52c9b842 100644 --- a/docs/draft-coar-cgi-v11-03-clean.html +++ b/docs/draft-coar-cgi-v11-03-clean.html | |||
@@ -123,7 +123,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
123 | </P> | 123 | </P> |
124 | <P> | 124 | <P> |
125 | Discussion of this draft occurs on the CGI-WG mailing list; see the | 125 | Discussion of this draft occurs on the CGI-WG mailing list; see the |
126 | project Web page at | 126 | project Web page at |
127 | <SAMP><URL:<A HREF="http://CGI-Spec.Golux.Com/" | 127 | <SAMP><URL:<A HREF="http://CGI-Spec.Golux.Com/" |
128 | >http://CGI-Spec.Golux.Com/</A>></SAMP> | 128 | >http://CGI-Spec.Golux.Com/</A>></SAMP> |
129 | for details on the mailing list and the status of the project. | 129 | for details on the mailing list and the status of the project. |
@@ -410,17 +410,17 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
410 | </H3> | 410 | </H3> |
411 | <P> | 411 | <P> |
412 | Together the HTTP [<A HREF="#[3]">3</A>,<A HREF="#[8]">8</A>] server | 412 | Together the HTTP [<A HREF="#[3]">3</A>,<A HREF="#[8]">8</A>] server |
413 | and the CGI script are responsible | 413 | and the CGI script are responsible |
414 | for servicing a client | 414 | for servicing a client |
415 | request by sending back responses. The client | 415 | request by sending back responses. The client |
416 | request comprises a Universal Resource Identifier (URI) | 416 | request comprises a Universal Resource Identifier (URI) |
417 | [<A HREF="#[1]">1</A>], a | 417 | [<A HREF="#[1]">1</A>], a |
418 | request method, and various ancillary | 418 | request method, and various ancillary |
419 | information about the request | 419 | information about the request |
420 | provided by the transport mechanism. | 420 | provided by the transport mechanism. |
421 | </P> | 421 | </P> |
422 | <P> | 422 | <P> |
423 | The CGI defines the abstract parameters, known as | 423 | The CGI defines the abstract parameters, known as |
424 | metavariables, | 424 | metavariables, |
425 | which describe the client's | 425 | which describe the client's |
426 | request. Together with a | 426 | request. Together with a |
@@ -435,7 +435,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
435 | </H3> | 435 | </H3> |
436 | <P> | 436 | <P> |
437 | This specification uses the same words as RFC 1123 | 437 | This specification uses the same words as RFC 1123 |
438 | [<A HREF="#[5]">5</A>] to define the | 438 | [<A HREF="#[5]">5</A>] to define the |
439 | significance of each particular requirement. These are: | 439 | significance of each particular requirement. These are: |
440 | </P><!--#if expr="! $GUI" --> | 440 | </P><!--#if expr="! $GUI" --> |
441 | <P></P><!--#endif --> | 441 | <P></P><!--#endif --> |
@@ -478,7 +478,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
478 | all of the 'should' requirements for its features is said to be | 478 | all of the 'should' requirements for its features is said to be |
479 | 'conditionally compliant.' | 479 | 'conditionally compliant.' |
480 | </P> | 480 | </P> |
481 | 481 | ||
482 | <H3> | 482 | <H3> |
483 | <A NAME="1.3"> | 483 | <A NAME="1.3"> |
484 | 1.3. Specifications | 484 | 1.3. Specifications |
@@ -514,7 +514,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
514 | </P> | 514 | </P> |
515 | </DD> | 515 | </DD> |
516 | </DL> | 516 | </DL> |
517 | 517 | ||
518 | <H3> | 518 | <H3> |
519 | <A NAME="1.4"> | 519 | <A NAME="1.4"> |
520 | 1.4. Terminology | 520 | 1.4. Terminology |
@@ -523,11 +523,11 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
523 | <P> | 523 | <P> |
524 | This specification uses many terms defined in the HTTP/1.1 | 524 | This specification uses many terms defined in the HTTP/1.1 |
525 | specification [<A HREF="#[8]">8</A>]; however, the following terms are | 525 | specification [<A HREF="#[8]">8</A>]; however, the following terms are |
526 | used here in a | 526 | used here in a |
527 | sense which may not accord with their definitions in that document, | 527 | sense which may not accord with their definitions in that document, |
528 | or with their common meaning. | 528 | or with their common meaning. |
529 | </P> | 529 | </P> |
530 | 530 | ||
531 | <DL> | 531 | <DL> |
532 | <DT><EM>metavariable</EM> | 532 | <DT><EM>metavariable</EM> |
533 | </DT> | 533 | </DT> |
@@ -538,13 +538,13 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
538 | environment, although that is the most common implementation. | 538 | environment, although that is the most common implementation. |
539 | </P> | 539 | </P> |
540 | </DD> | 540 | </DD> |
541 | 541 | ||
542 | <DT><EM>script</EM> | 542 | <DT><EM>script</EM> |
543 | </DT> | 543 | </DT> |
544 | <DD> | 544 | <DD> |
545 | <P> | 545 | <P> |
546 | The software which is invoked by the server <EM>via</EM> this | 546 | The software which is invoked by the server <EM>via</EM> this |
547 | interface. It | 547 | interface. It |
548 | need not be a standalone program, but could be a | 548 | need not be a standalone program, but could be a |
549 | dynamically-loaded or shared library, or even a subroutine in the | 549 | dynamically-loaded or shared library, or even a subroutine in the |
550 | server. It <EM>may</EM> be a set of statements | 550 | server. It <EM>may</EM> be a set of statements |
@@ -562,7 +562,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
562 | </P> | 562 | </P> |
563 | </DD> | 563 | </DD> |
564 | </DL> | 564 | </DL> |
565 | 565 | ||
566 | <H2> | 566 | <H2> |
567 | <A NAME="2.0"> | 567 | <A NAME="2.0"> |
568 | 2. Notational Conventions and Generic Grammar | 568 | 2. Notational Conventions and Generic Grammar |
@@ -632,7 +632,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
632 | </P> | 632 | </P> |
633 | </DD> | 633 | </DD> |
634 | </DL> | 634 | </DL> |
635 | 635 | ||
636 | <H3> | 636 | <H3> |
637 | <A NAME="2.2"> | 637 | <A NAME="2.2"> |
638 | 2.2. Basic Rules | 638 | 2.2. Basic Rules |
@@ -687,7 +687,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
687 | Note that newline (NL) need not be a single character, but can be a | 687 | Note that newline (NL) need not be a single character, but can be a |
688 | character sequence. | 688 | character sequence. |
689 | </P> | 689 | </P> |
690 | 690 | ||
691 | <H2> | 691 | <H2> |
692 | <A NAME="3.0"> | 692 | <A NAME="3.0"> |
693 | 3. Protocol Parameters | 693 | 3. Protocol Parameters |
@@ -730,7 +730,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
730 | 2396 [<A HREF="#[4]">4</A>] | 730 | 2396 [<A HREF="#[4]">4</A>] |
731 | for authoritative treatment of this issue. | 731 | for authoritative treatment of this issue. |
732 | </P> | 732 | </P> |
733 | 733 | ||
734 | <H3> | 734 | <H3> |
735 | <A NAME="3.2"> | 735 | <A NAME="3.2"> |
736 | 3.2. The Script-URI | 736 | 3.2. The Script-URI |
@@ -739,7 +739,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
739 | <P> | 739 | <P> |
740 | The 'Script-URI' is defined as the URI of the resource identified | 740 | The 'Script-URI' is defined as the URI of the resource identified |
741 | by the metavariables. Often, | 741 | by the metavariables. Often, |
742 | this URI will be the same as | 742 | this URI will be the same as |
743 | the URI requested by the client (the 'Client-URI'); however, it need | 743 | the URI requested by the client (the 'Client-URI'); however, it need |
744 | not be. Instead, it could be a URI invented by the server, and so it | 744 | not be. Instead, it could be a URI invented by the server, and so it |
745 | can only be used in the context of the server and its CGI interface. | 745 | can only be used in the context of the server and its CGI interface. |
@@ -747,7 +747,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
747 | <P> | 747 | <P> |
748 | The Script-URI has the syntax of generic-RL as defined in section 2.1 | 748 | The Script-URI has the syntax of generic-RL as defined in section 2.1 |
749 | of RFC 1808 [<A HREF="#[7]">7</A>], with the exception that object | 749 | of RFC 1808 [<A HREF="#[7]">7</A>], with the exception that object |
750 | parameters and | 750 | parameters and |
751 | fragment identifiers are not permitted: | 751 | fragment identifiers are not permitted: |
752 | </P><!--#if expr="! $GUI" --> | 752 | </P><!--#if expr="! $GUI" --> |
753 | <P></P><!--#endif --> | 753 | <P></P><!--#endif --> |
@@ -783,7 +783,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
783 | for the script to reconstruct this, and therefore | 783 | for the script to reconstruct this, and therefore |
784 | the Script-URI includes the base protocol used. | 784 | the Script-URI includes the base protocol used. |
785 | </P> | 785 | </P> |
786 | 786 | ||
787 | <H2> | 787 | <H2> |
788 | <A NAME="4.0"> | 788 | <A NAME="4.0"> |
789 | 4. Invoking the Script | 789 | 4. Invoking the Script |
@@ -795,7 +795,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
795 | otherwise, the file containing the script will be invoked as an | 795 | otherwise, the file containing the script will be invoked as an |
796 | executable program. | 796 | executable program. |
797 | </P> | 797 | </P> |
798 | 798 | ||
799 | <H2> | 799 | <H2> |
800 | <A NAME="5.0"> | 800 | <A NAME="5.0"> |
801 | 5. The CGI Script Command Line | 801 | 5. The CGI Script Command Line |
@@ -807,7 +807,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
807 | This is identified by a "GET" or "HEAD" HTTP request with a URL | 807 | This is identified by a "GET" or "HEAD" HTTP request with a URL |
808 | query | 808 | query |
809 | string not containing any unencoded "=" characters. For such a | 809 | string not containing any unencoded "=" characters. For such a |
810 | request, | 810 | request, |
811 | servers SHOULD parse the search string | 811 | servers SHOULD parse the search string |
812 | into words, using the following rules: | 812 | into words, using the following rules: |
813 | </P><!--#if expr="! $GUI" --> | 813 | </P><!--#if expr="! $GUI" --> |
@@ -862,12 +862,12 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
862 | <P> | 862 | <P> |
863 | Each CGI server | 863 | Each CGI server |
864 | implementation MUST define a mechanism | 864 | implementation MUST define a mechanism |
865 | to pass data about the request from | 865 | to pass data about the request from |
866 | the server to the script. | 866 | the server to the script. |
867 | The metavariables containing these | 867 | The metavariables containing these |
868 | data | 868 | data |
869 | are accessed by the script in a system | 869 | are accessed by the script in a system |
870 | defined manner. | 870 | defined manner. |
871 | The | 871 | The |
872 | representation of the characters in the | 872 | representation of the characters in the |
873 | metavariables is | 873 | metavariables is |
@@ -935,7 +935,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
935 | </A> | 935 | </A> |
936 | </H4> | 936 | </H4> |
937 | <P> | 937 | <P> |
938 | This variable is specific to requests made | 938 | This variable is specific to requests made |
939 | <EM>via</EM> the | 939 | <EM>via</EM> the |
940 | "<CODE>http</CODE>" | 940 | "<CODE>http</CODE>" |
941 | scheme. | 941 | scheme. |
@@ -943,10 +943,10 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
943 | <P> | 943 | <P> |
944 | If the Script-URI | 944 | If the Script-URI |
945 | required access authentication for external | 945 | required access authentication for external |
946 | access, then the server | 946 | access, then the server |
947 | MUST set | 947 | MUST set |
948 | the value of | 948 | the value of |
949 | this variable | 949 | this variable |
950 | from the '<SAMP>auth-scheme</SAMP>' token in | 950 | from the '<SAMP>auth-scheme</SAMP>' token in |
951 | the request's "<SAMP>Authorization</SAMP>" header | 951 | the request's "<SAMP>Authorization</SAMP>" header |
952 | field. | 952 | field. |
@@ -962,7 +962,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
962 | <P> | 962 | <P> |
963 | HTTP access authentication schemes are described in section 11 of the | 963 | HTTP access authentication schemes are described in section 11 of the |
964 | HTTP/1.1 specification [<A HREF="#[8]">8</A>]. The auth-scheme is | 964 | HTTP/1.1 specification [<A HREF="#[8]">8</A>]. The auth-scheme is |
965 | not case-sensitive. | 965 | not case-sensitive. |
966 | </P> | 966 | </P> |
967 | <P> | 967 | <P> |
968 | Servers | 968 | Servers |
@@ -1018,7 +1018,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1018 | entity if the type was provided <EM>via</EM> | 1018 | entity if the type was provided <EM>via</EM> |
1019 | a "<SAMP>Content-type</SAMP>" field in the | 1019 | a "<SAMP>Content-type</SAMP>" field in the |
1020 | request header, or if the server can determine it in the absence | 1020 | request header, or if the server can determine it in the absence |
1021 | of a supplied "<SAMP>Content-type</SAMP>" field. The syntax is the | 1021 | of a supplied "<SAMP>Content-type</SAMP>" field. The syntax is the |
1022 | same as for the HTTP | 1022 | same as for the HTTP |
1023 | "<SAMP>Content-Type</SAMP>" header field. | 1023 | "<SAMP>Content-Type</SAMP>" header field. |
1024 | </P><!--#if expr="! $GUI" --> | 1024 | </P><!--#if expr="! $GUI" --> |
@@ -1053,7 +1053,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1053 | the data received. If the type remains unknown, then | 1053 | the data received. If the type remains unknown, then |
1054 | the script MAY choose to either assume a | 1054 | the script MAY choose to either assume a |
1055 | content-type of | 1055 | content-type of |
1056 | <SAMP>application/octet-stream</SAMP> | 1056 | <SAMP>application/octet-stream</SAMP> |
1057 | or reject the request with a 415 ("Unsupported Media Type") | 1057 | or reject the request with a 415 ("Unsupported Media Type") |
1058 | error. See <A HREF="#7.2.1.3">section 7.2.1.3</A> | 1058 | error. See <A HREF="#7.2.1.3">section 7.2.1.3</A> |
1059 | for more information about returning error status values. | 1059 | for more information about returning error status values. |
@@ -1091,7 +1091,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1091 | </PRE> | 1091 | </PRE> |
1092 | <P> | 1092 | <P> |
1093 | Note that the major and minor numbers are treated as separate | 1093 | Note that the major and minor numbers are treated as separate |
1094 | integers and hence each may be | 1094 | integers and hence each may be |
1095 | more than a single | 1095 | more than a single |
1096 | digit. Thus CGI/2.4 is a lower version than CGI/2.13 which in turn | 1096 | digit. Thus CGI/2.4 is a lower version than CGI/2.13 which in turn |
1097 | is lower than CGI/12.3. Leading zeros in either | 1097 | is lower than CGI/12.3. Leading zeros in either |
@@ -1114,10 +1114,10 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1114 | </H4> | 1114 | </H4> |
1115 | <P> | 1115 | <P> |
1116 | These metavariables are specific to | 1116 | These metavariables are specific to |
1117 | the protocol | 1117 | the protocol |
1118 | <EM>via</EM> which the request is made. | 1118 | <EM>via</EM> which the request is made. |
1119 | Interpretation of these variables depends on the value of | 1119 | Interpretation of these variables depends on the value of |
1120 | the | 1120 | the |
1121 | SERVER_PROTOCOL | 1121 | SERVER_PROTOCOL |
1122 | metavariable | 1122 | metavariable |
1123 | (see | 1123 | (see |
@@ -1158,7 +1158,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1158 | the request | 1158 | the request |
1159 | header fields that they | 1159 | header fields that they |
1160 | receive. In particular, | 1160 | receive. In particular, |
1161 | they MAY | 1161 | they MAY |
1162 | decline to make available any | 1162 | decline to make available any |
1163 | header fields carrying authentication information, such as | 1163 | header fields carrying authentication information, such as |
1164 | "<SAMP>Authorization</SAMP>", or | 1164 | "<SAMP>Authorization</SAMP>", or |
@@ -1188,7 +1188,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1188 | (defined in | 1188 | (defined in |
1189 | RFC 2396 | 1189 | RFC 2396 |
1190 | [<A HREF="#[4]">4</A>]), with the exception | 1190 | [<A HREF="#[4]">4</A>]), with the exception |
1191 | that a PATH_INFO of "/" | 1191 | that a PATH_INFO of "/" |
1192 | represents a single void path segment. | 1192 | represents a single void path segment. |
1193 | </P><!--#if expr="! $GUI" --> | 1193 | </P><!--#if expr="! $GUI" --> |
1194 | <P></P><!--#endif --> | 1194 | <P></P><!--#endif --> |
@@ -1202,7 +1202,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1202 | The PATH_INFO string is the trailing part of the <path> component of | 1202 | The PATH_INFO string is the trailing part of the <path> component of |
1203 | the Script-URI | 1203 | the Script-URI |
1204 | (see <A HREF="#3.2">section 3.2</A>) | 1204 | (see <A HREF="#3.2">section 3.2</A>) |
1205 | that follows the SCRIPT_NAME | 1205 | that follows the SCRIPT_NAME |
1206 | portion of the path. | 1206 | portion of the path. |
1207 | </P> | 1207 | </P> |
1208 | <P> | 1208 | <P> |
@@ -1285,7 +1285,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1285 | case of the original segment through the translation. | 1285 | case of the original segment through the translation. |
1286 | </P> | 1286 | </P> |
1287 | <P> | 1287 | <P> |
1288 | The | 1288 | The |
1289 | translation | 1289 | translation |
1290 | algorithm the server uses to derive PATH_TRANSLATED is | 1290 | algorithm the server uses to derive PATH_TRANSLATED is |
1291 | implementation defined; CGI scripts which use this variable may | 1291 | implementation defined; CGI scripts which use this variable may |
@@ -1303,7 +1303,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1303 | </A> | 1303 | </A> |
1304 | </H4> | 1304 | </H4> |
1305 | <P> | 1305 | <P> |
1306 | A URL-encoded | 1306 | A URL-encoded |
1307 | string; the <query> part of the | 1307 | string; the <query> part of the |
1308 | Script-URI. | 1308 | Script-URI. |
1309 | (See | 1309 | (See |
@@ -1371,7 +1371,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1371 | Servers SHOULD provide this information to | 1371 | Servers SHOULD provide this information to |
1372 | scripts. | 1372 | scripts. |
1373 | </P> | 1373 | </P> |
1374 | 1374 | ||
1375 | <H4> | 1375 | <H4> |
1376 | <A NAME="6.1.11"> | 1376 | <A NAME="6.1.11"> |
1377 | 6.1.11. REMOTE_IDENT | 1377 | 6.1.11. REMOTE_IDENT |
@@ -1398,7 +1398,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1398 | Servers MAY supply this information to scripts if the | 1398 | Servers MAY supply this information to scripts if the |
1399 | RFC1413 [<A HREF="#[11]">11</A>] lookup is performed. | 1399 | RFC1413 [<A HREF="#[11]">11</A>] lookup is performed. |
1400 | </P> | 1400 | </P> |
1401 | 1401 | ||
1402 | <H4> | 1402 | <H4> |
1403 | <A NAME="6.1.12"> | 1403 | <A NAME="6.1.12"> |
1404 | 6.1.12. REMOTE_USER | 1404 | 6.1.12. REMOTE_USER |
@@ -1426,7 +1426,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1426 | Servers SHOULD provide this metavariable | 1426 | Servers SHOULD provide this metavariable |
1427 | to scripts. | 1427 | to scripts. |
1428 | </P> | 1428 | </P> |
1429 | 1429 | ||
1430 | <H4> | 1430 | <H4> |
1431 | <A NAME="6.1.13"> | 1431 | <A NAME="6.1.13"> |
1432 | 6.1.13. REQUEST_METHOD | 1432 | 6.1.13. REQUEST_METHOD |
@@ -1438,7 +1438,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1438 | is set to the | 1438 | is set to the |
1439 | method with which the request was made, as described in section | 1439 | method with which the request was made, as described in section |
1440 | 5.1.1 of the HTTP/1.0 specification [<A HREF="#[3]">3</A>] and | 1440 | 5.1.1 of the HTTP/1.0 specification [<A HREF="#[3]">3</A>] and |
1441 | section 5.1.1 of the | 1441 | section 5.1.1 of the |
1442 | HTTP/1.1 specification [<A HREF="#[8]">8</A>]. | 1442 | HTTP/1.1 specification [<A HREF="#[8]">8</A>]. |
1443 | </P><!--#if expr="! $GUI" --> | 1443 | </P><!--#if expr="! $GUI" --> |
1444 | <P></P><!--#endif --> | 1444 | <P></P><!--#endif --> |
@@ -1449,7 +1449,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1449 | extension-method = token | 1449 | extension-method = token |
1450 | </PRE> | 1450 | </PRE> |
1451 | <P> | 1451 | <P> |
1452 | The method is case sensitive. | 1452 | The method is case sensitive. |
1453 | CGI/1.1 servers MAY choose to process some methods | 1453 | CGI/1.1 servers MAY choose to process some methods |
1454 | directly rather than passing them to scripts. | 1454 | directly rather than passing them to scripts. |
1455 | </P> | 1455 | </P> |
@@ -1460,7 +1460,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1460 | Servers MUST provide this metavariable | 1460 | Servers MUST provide this metavariable |
1461 | to scripts. | 1461 | to scripts. |
1462 | </P> | 1462 | </P> |
1463 | 1463 | ||
1464 | <H4> | 1464 | <H4> |
1465 | <A NAME="6.1.14"> | 1465 | <A NAME="6.1.14"> |
1466 | 6.1.14. SCRIPT_NAME | 1466 | 6.1.14. SCRIPT_NAME |
@@ -1494,7 +1494,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1494 | Servers MUST provide this metavariable | 1494 | Servers MUST provide this metavariable |
1495 | to scripts. | 1495 | to scripts. |
1496 | </P> | 1496 | </P> |
1497 | 1497 | ||
1498 | <H4> | 1498 | <H4> |
1499 | <A NAME="6.1.15"> | 1499 | <A NAME="6.1.15"> |
1500 | 6.1.15. SERVER_NAME | 1500 | 6.1.15. SERVER_NAME |
@@ -1505,7 +1505,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1505 | metavariable | 1505 | metavariable |
1506 | is set to the | 1506 | is set to the |
1507 | name of the | 1507 | name of the |
1508 | server, as | 1508 | server, as |
1509 | derived from the <host> part of the | 1509 | derived from the <host> part of the |
1510 | Script-URI | 1510 | Script-URI |
1511 | (see <A HREF="#3.2">section 3.2</A>). | 1511 | (see <A HREF="#3.2">section 3.2</A>). |
@@ -1544,7 +1544,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1544 | Servers MUST provide this metavariable | 1544 | Servers MUST provide this metavariable |
1545 | to scripts. | 1545 | to scripts. |
1546 | </P> | 1546 | </P> |
1547 | 1547 | ||
1548 | <H4> | 1548 | <H4> |
1549 | <A NAME="6.1.17"> | 1549 | <A NAME="6.1.17"> |
1550 | 6.1.17. SERVER_PROTOCOL | 1550 | 6.1.17. SERVER_PROTOCOL |
@@ -1589,7 +1589,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1589 | Servers MUST provide this metavariable | 1589 | Servers MUST provide this metavariable |
1590 | to scripts. | 1590 | to scripts. |
1591 | </P> | 1591 | </P> |
1592 | 1592 | ||
1593 | <H4> | 1593 | <H4> |
1594 | <A NAME="6.1.18"> | 1594 | <A NAME="6.1.18"> |
1595 | 6.1.18. SERVER_SOFTWARE | 1595 | 6.1.18. SERVER_SOFTWARE |
@@ -1641,7 +1641,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1641 | <P> | 1641 | <P> |
1642 | For non-parsed header (NPH) scripts (see | 1642 | For non-parsed header (NPH) scripts (see |
1643 | <A HREF="#7.1">section 7.1</A> | 1643 | <A HREF="#7.1">section 7.1</A> |
1644 | below), | 1644 | below), |
1645 | servers SHOULD | 1645 | servers SHOULD |
1646 | attempt to ensure that the data | 1646 | attempt to ensure that the data |
1647 | supplied to the script are precisely | 1647 | supplied to the script are precisely |
@@ -1705,7 +1705,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1705 | internal and no transport-visible | 1705 | internal and no transport-visible |
1706 | buffering. | 1706 | buffering. |
1707 | </P> | 1707 | </P> |
1708 | 1708 | ||
1709 | <H3> | 1709 | <H3> |
1710 | <A NAME="7.2"> | 1710 | <A NAME="7.2"> |
1711 | 7.2. Parsed Header Output | 1711 | 7.2. Parsed Header Output |
@@ -1790,7 +1790,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1790 | a member of the "one of these is required" set of header | 1790 | a member of the "one of these is required" set of header |
1791 | fields. | 1791 | fields. |
1792 | </P> | 1792 | </P> |
1793 | 1793 | ||
1794 | <H4> | 1794 | <H4> |
1795 | <A NAME="7.2.1.2"> | 1795 | <A NAME="7.2.1.2"> |
1796 | 7.2.1.2. Location | 1796 | 7.2.1.2. Location |
@@ -1819,7 +1819,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1819 | value is either an absolute URI with optional fragment, | 1819 | value is either an absolute URI with optional fragment, |
1820 | as defined in RFC 1630 [<A HREF="#[1]">1</A>], or an absolute path | 1820 | as defined in RFC 1630 [<A HREF="#[1]">1</A>], or an absolute path |
1821 | within the server's URI space (<EM>i.e.</EM>, | 1821 | within the server's URI space (<EM>i.e.</EM>, |
1822 | omitting the scheme and network-related fields) and optional | 1822 | omitting the scheme and network-related fields) and optional |
1823 | query-string. If an absolute URI is returned by the script, | 1823 | query-string. If an absolute URI is returned by the script, |
1824 | then the | 1824 | then the |
1825 | server MUST generate a | 1825 | server MUST generate a |
@@ -1867,7 +1867,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1867 | The valid status codes are listed in section 6.1.1 of the HTTP/1.0 | 1867 | The valid status codes are listed in section 6.1.1 of the HTTP/1.0 |
1868 | specifications [<A HREF="#[3]">3</A>]. If the SERVER_PROTOCOL is | 1868 | specifications [<A HREF="#[3]">3</A>]. If the SERVER_PROTOCOL is |
1869 | "HTTP/1.1", then the status codes defined in the HTTP/1.1 | 1869 | "HTTP/1.1", then the status codes defined in the HTTP/1.1 |
1870 | specification [<A HREF="#[8]">8</A>] may | 1870 | specification [<A HREF="#[8]">8</A>] may |
1871 | be used. If the script does not return a "<SAMP>Status</SAMP>" header | 1871 | be used. If the script does not return a "<SAMP>Status</SAMP>" header |
1872 | field, then "200 OK" SHOULD be assumed by the server. | 1872 | field, then "200 OK" SHOULD be assumed by the server. |
1873 | </P> | 1873 | </P> |
@@ -1879,7 +1879,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1879 | SHOULD include a "Status: 404 Not Found" in the | 1879 | SHOULD include a "Status: 404 Not Found" in the |
1880 | header data returned to the server. | 1880 | header data returned to the server. |
1881 | </P> | 1881 | </P> |
1882 | 1882 | ||
1883 | <H4> | 1883 | <H4> |
1884 | <A NAME="7.2.1.4"> | 1884 | <A NAME="7.2.1.4"> |
1885 | 7.2.1.4. Extension header fields | 1885 | 7.2.1.4. Extension header fields |
@@ -1941,7 +1941,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1941 | </H3> | 1941 | </H3> |
1942 | <P> | 1942 | <P> |
1943 | Servers MUST support the standard mechanism (described below) which | 1943 | Servers MUST support the standard mechanism (described below) which |
1944 | allows | 1944 | allows |
1945 | script authors to determine | 1945 | script authors to determine |
1946 | what URL to use in documents | 1946 | what URL to use in documents |
1947 | which reference the script; | 1947 | which reference the script; |
@@ -1951,11 +1951,11 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
1951 | mechanism is as follows: | 1951 | mechanism is as follows: |
1952 | </P> | 1952 | </P> |
1953 | <P> | 1953 | <P> |
1954 | The server | 1954 | The server |
1955 | MUST translate the header data from the CGI header field syntax to | 1955 | MUST translate the header data from the CGI header field syntax to |
1956 | the HTTP | 1956 | the HTTP |
1957 | header field syntax if these differ. For example, the character | 1957 | header field syntax if these differ. For example, the character |
1958 | sequence for | 1958 | sequence for |
1959 | newline (such as Unix's ASCII NL) used by CGI scripts may not be the | 1959 | newline (such as Unix's ASCII NL) used by CGI scripts may not be the |
1960 | same as that used by HTTP (ASCII CR followed by LF). The server MUST | 1960 | same as that used by HTTP (ASCII CR followed by LF). The server MUST |
1961 | also resolve any conflicts between header fields returned by the script | 1961 | also resolve any conflicts between header fields returned by the script |
@@ -2052,7 +2052,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2052 | </LI> | 2052 | </LI> |
2053 | <LI>define the behaviour for <SAMP>"."</SAMP> or <SAMP>".."</SAMP> path | 2053 | <LI>define the behaviour for <SAMP>"."</SAMP> or <SAMP>".."</SAMP> path |
2054 | segments; <EM>i.e.</EM>, whether they are prohibited, treated as | 2054 | segments; <EM>i.e.</EM>, whether they are prohibited, treated as |
2055 | ordinary path | 2055 | ordinary path |
2056 | segments or interpreted in accordance with the relative URL | 2056 | segments or interpreted in accordance with the relative URL |
2057 | specification [<A HREF="#[7]">7</A>]; | 2057 | specification [<A HREF="#[7]">7</A>]; |
2058 | </LI> | 2058 | </LI> |
@@ -2143,7 +2143,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2143 | 2143 | ||
2144 | <H2> | 2144 | <H2> |
2145 | <A NAME="9.0"> | 2145 | <A NAME="9.0"> |
2146 | 9. | 2146 | 9. |
2147 | Script Implementation | 2147 | Script Implementation |
2148 | </A> | 2148 | </A> |
2149 | </H2> | 2149 | </H2> |
@@ -2219,7 +2219,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2219 | Found' if PATH_INFO is not NULL. | 2219 | Found' if PATH_INFO is not NULL. |
2220 | </P> | 2220 | </P> |
2221 | <P> | 2221 | <P> |
2222 | If a script is processing the output of a form, it SHOULD | 2222 | If a script is processing the output of a form, it SHOULD |
2223 | verify that the CONTENT_TYPE | 2223 | verify that the CONTENT_TYPE |
2224 | is "<SAMP>application/x-www-form-urlencoded</SAMP>" [<A HREF="#[2]">2</A>] | 2224 | is "<SAMP>application/x-www-form-urlencoded</SAMP>" [<A HREF="#[2]">2</A>] |
2225 | or whatever other media type is expected. | 2225 | or whatever other media type is expected. |
@@ -2231,12 +2231,12 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2231 | of void path segments ("<SAMP>//</SAMP>") and special path segments | 2231 | of void path segments ("<SAMP>//</SAMP>") and special path segments |
2232 | (<SAMP>"."</SAMP> and | 2232 | (<SAMP>"."</SAMP> and |
2233 | <SAMP>".."</SAMP>). They SHOULD either be removed from the path before | 2233 | <SAMP>".."</SAMP>). They SHOULD either be removed from the path before |
2234 | use in OS | 2234 | use in OS |
2235 | system calls, or the request SHOULD be rejected with | 2235 | system calls, or the request SHOULD be rejected with |
2236 | '404 Not Found'. | 2236 | '404 Not Found'. |
2237 | </P> | 2237 | </P> |
2238 | <P> | 2238 | <P> |
2239 | As it is impossible for | 2239 | As it is impossible for |
2240 | scripts to determine the client URI that | 2240 | scripts to determine the client URI that |
2241 | initiated a | 2241 | initiated a |
2242 | request without knowledge of the specific server in | 2242 | request without knowledge of the specific server in |
@@ -2246,7 +2246,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2246 | tag in the document. | 2246 | tag in the document. |
2247 | </P> | 2247 | </P> |
2248 | <P> | 2248 | <P> |
2249 | When returning header fields, | 2249 | When returning header fields, |
2250 | scripts SHOULD try to send the CGI | 2250 | scripts SHOULD try to send the CGI |
2251 | header fields (see section | 2251 | header fields (see section |
2252 | <A HREF="#7.2">7.2</A>) as soon as possible, and | 2252 | <A HREF="#7.2">7.2</A>) as soon as possible, and |
@@ -2254,7 +2254,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2254 | before any HTTP header fields. This may | 2254 | before any HTTP header fields. This may |
2255 | help reduce the server's memory requirements. | 2255 | help reduce the server's memory requirements. |
2256 | </P> | 2256 | </P> |
2257 | 2257 | ||
2258 | <H2> | 2258 | <H2> |
2259 | <A NAME="10.0"> | 2259 | <A NAME="10.0"> |
2260 | 10. System Specifications | 2260 | 10. System Specifications |
@@ -2300,7 +2300,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2300 | </P> | 2300 | </P> |
2301 | </DD> | 2301 | </DD> |
2302 | </DL> | 2302 | </DL> |
2303 | 2303 | ||
2304 | <H3> | 2304 | <H3> |
2305 | <A NAME="10.2"> | 2305 | <A NAME="10.2"> |
2306 | 10.2. Unix | 2306 | 10.2. Unix |
@@ -2356,7 +2356,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2356 | </P> | 2356 | </P> |
2357 | </DD> | 2357 | </DD> |
2358 | </DL> | 2358 | </DL> |
2359 | 2359 | ||
2360 | <H2> | 2360 | <H2> |
2361 | <A NAME="11.0"> | 2361 | <A NAME="11.0"> |
2362 | 11. Security Considerations | 2362 | 11. Security Considerations |
@@ -2371,7 +2371,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2371 | <P> | 2371 | <P> |
2372 | As discussed in the security considerations of the HTTP | 2372 | As discussed in the security considerations of the HTTP |
2373 | specifications [<A HREF="#[3]">3</A>,<A HREF="#[8]">8</A>], the | 2373 | specifications [<A HREF="#[3]">3</A>,<A HREF="#[8]">8</A>], the |
2374 | convention has been established that the | 2374 | convention has been established that the |
2375 | GET and HEAD methods should be 'safe'; they should cause no | 2375 | GET and HEAD methods should be 'safe'; they should cause no |
2376 | side-effects and only have the significance of resource retrieval. | 2376 | side-effects and only have the significance of resource retrieval. |
2377 | </P> | 2377 | </P> |
@@ -2386,7 +2386,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2386 | requests are those that may be repeated an arbitrary number of times | 2386 | requests are those that may be repeated an arbitrary number of times |
2387 | and produce side effects identical to a single request. | 2387 | and produce side effects identical to a single request. |
2388 | </P> | 2388 | </P> |
2389 | 2389 | ||
2390 | <H3> | 2390 | <H3> |
2391 | <A NAME="11.2"> | 2391 | <A NAME="11.2"> |
2392 | 11.2. HTTP Header | 2392 | 11.2. HTTP Header |
@@ -2410,7 +2410,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2410 | HTTP_PROXY_AUTHORIZATION | 2410 | HTTP_PROXY_AUTHORIZATION |
2411 | metavariable. | 2411 | metavariable. |
2412 | </P> | 2412 | </P> |
2413 | 2413 | ||
2414 | <H3> | 2414 | <H3> |
2415 | <A NAME="11.3"> | 2415 | <A NAME="11.3"> |
2416 | 11.3. Script | 2416 | 11.3. Script |
@@ -2429,7 +2429,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2429 | SHOULD be taken to protect the core memory of the server, or to | 2429 | SHOULD be taken to protect the core memory of the server, or to |
2430 | ensure that untrusted code cannot be executed. | 2430 | ensure that untrusted code cannot be executed. |
2431 | </P> | 2431 | </P> |
2432 | 2432 | ||
2433 | <H3> | 2433 | <H3> |
2434 | <A NAME="11.4"> | 2434 | <A NAME="11.4"> |
2435 | 11.4. Data Length and Buffering Considerations | 2435 | 11.4. Data Length and Buffering Considerations |
@@ -2504,7 +2504,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2504 | Patrick M<SUP>c</SUP>Manus, Adam Donahue, | 2504 | Patrick M<SUP>c</SUP>Manus, Adam Donahue, |
2505 | Ross Patterson, and Harald Alvestrand. | 2505 | Ross Patterson, and Harald Alvestrand. |
2506 | </P> | 2506 | </P> |
2507 | 2507 | ||
2508 | <H2> | 2508 | <H2> |
2509 | <A NAME="13.0"> | 2509 | <A NAME="13.0"> |
2510 | 13. References | 2510 | 13. References |
@@ -2554,7 +2554,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2554 | </DD> | 2554 | </DD> |
2555 | <DT><A NAME="[6]">[6]</A> | 2555 | <DT><A NAME="[6]">[6]</A> |
2556 | </DT> | 2556 | </DT> |
2557 | <DD>Crocker, D.H., 'Standard for the Format of ARPA Internet Text | 2557 | <DD>Crocker, D.H., 'Standard for the Format of ARPA Internet Text |
2558 | Messages', STD 11, RFC 822, University of Delaware, August 1982. | 2558 | Messages', STD 11, RFC 822, University of Delaware, August 1982. |
2559 | <P> | 2559 | <P> |
2560 | </P> | 2560 | </P> |
@@ -2614,7 +2614,7 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2614 | </P> | 2614 | </P> |
2615 | </DD> | 2615 | </DD> |
2616 | </DL> | 2616 | </DL> |
2617 | 2617 | ||
2618 | <H2> | 2618 | <H2> |
2619 | <A NAME="14.0"> | 2619 | <A NAME="14.0"> |
2620 | 14. Authors' Addresses | 2620 | 14. Authors' Addresses |
@@ -2669,6 +2669,6 @@ INTERNET-DRAFT Expires 1 December 1998 [Page 2] | |||
2669 | HREF="mailto:drtr@etrade.co.uk" | 2669 | HREF="mailto:drtr@etrade.co.uk" |
2670 | ><SAMP>drtr@etrade.co.uk</SAMP></A> | 2670 | ><SAMP>drtr@etrade.co.uk</SAMP></A> |
2671 | </ADDRESS> | 2671 | </ADDRESS> |
2672 | 2672 | ||
2673 | </BODY> | 2673 | </BODY> |
2674 | </HTML> | 2674 | </HTML> |
diff --git a/include/libbb.h b/include/libbb.h index 91d458f50..659bfcaa7 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -518,8 +518,8 @@ int chown_main(int argc, char **argv); | |||
518 | int gunzip_main(int argc, char **argv); | 518 | int gunzip_main(int argc, char **argv); |
519 | #endif | 519 | #endif |
520 | int bbunpack(char **argv, | 520 | int bbunpack(char **argv, |
521 | char* (*make_new_name)(char *filename), | 521 | char* (*make_new_name)(char *filename), |
522 | USE_DESKTOP(long long) int (*unpacker)(void) | 522 | USE_DESKTOP(long long) int (*unpacker)(void) |
523 | ); | 523 | ); |
524 | 524 | ||
525 | 525 | ||
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 58d657b02..7d85920d9 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -250,11 +250,11 @@ int copy_file(const char *source, const char *dest, int flags) | |||
250 | || (flags & FILEUTILS_SET_SECURITY_CONTEXT)) | 250 | || (flags & FILEUTILS_SET_SECURITY_CONTEXT)) |
251 | && is_selinux_enabled() > 0 | 251 | && is_selinux_enabled() > 0 |
252 | ) { | 252 | ) { |
253 | security_context_t con; | 253 | security_context_t con; |
254 | if (getfscreatecon(&con) == -1) { | 254 | if (getfscreatecon(&con) == -1) { |
255 | bb_perror_msg("getfscreatecon"); | 255 | bb_perror_msg("getfscreatecon"); |
256 | return -1; | 256 | return -1; |
257 | } | 257 | } |
258 | if (con) { | 258 | if (con) { |
259 | if(setfilecon(dest, con) == -1) { | 259 | if(setfilecon(dest, con) == -1) { |
260 | bb_perror_msg("setfilecon:%s,%s", dest, con); | 260 | bb_perror_msg("setfilecon:%s,%s", dest, con); |
diff --git a/libbb/selinux_common.c b/libbb/selinux_common.c index d506f0636..4cb85f00f 100644 --- a/libbb/selinux_common.c +++ b/libbb/selinux_common.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * libbb/selinux_common.c | 2 | * libbb/selinux_common.c |
3 | * -- common SELinux utility functions | 3 | * -- common SELinux utility functions |
4 | * | 4 | * |
5 | * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> | 5 | * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> |
6 | */ | 6 | */ |
7 | #include "busybox.h" | 7 | #include "busybox.h" |
diff --git a/miscutils/less.c b/miscutils/less.c index a7041552d..b81430d07 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -51,7 +51,7 @@ enum { | |||
51 | REAL_KEY_HOME = '7', // vt100? linux vt? or what? | 51 | REAL_KEY_HOME = '7', // vt100? linux vt? or what? |
52 | REAL_KEY_END = '8', | 52 | REAL_KEY_END = '8', |
53 | REAL_KEY_HOME_ALT = '1', // ESC [1~ (vt100? linux vt? or what?) | 53 | REAL_KEY_HOME_ALT = '1', // ESC [1~ (vt100? linux vt? or what?) |
54 | REAL_KEY_END_ALT = '4', // ESC [4~ | 54 | REAL_KEY_END_ALT = '4', // ESC [4~ |
55 | REAL_KEY_HOME_XTERM = 'H', | 55 | REAL_KEY_HOME_XTERM = 'H', |
56 | REAL_KEY_END_XTERM = 'F', | 56 | REAL_KEY_END_XTERM = 'F', |
57 | 57 | ||
diff --git a/selinux/chcon.c b/selinux/chcon.c index de077c380..72cfa93c3 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * chcon -- change security context, based on coreutils-5.97-13 | 2 | * chcon -- change security context, based on coreutils-5.97-13 |
3 | * | 3 | * |
4 | * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp> | 4 | * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp> |
5 | * | 5 | * |
6 | * Copyright (C) 2006 - 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> | 6 | * Copyright (C) 2006 - 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> |
7 | */ | 7 | */ |
8 | #include "busybox.h" | 8 | #include "busybox.h" |
diff --git a/shell/ash_test/ash-arith/arith-for.right b/shell/ash_test/ash-arith/arith-for.right index 44941103f..88dbc15fa 100644 --- a/shell/ash_test/ash-arith/arith-for.right +++ b/shell/ash_test/ash-arith/arith-for.right | |||
@@ -11,8 +11,8 @@ | |||
11 | 2 | 11 | 2 |
12 | 4 | 12 | 4 |
13 | fx is a function | 13 | fx is a function |
14 | fx () | 14 | fx () |
15 | { | 15 | { |
16 | i=0; | 16 | i=0; |
17 | for ((1; i < 3; i++ )) | 17 | for ((1; i < 3; i++ )) |
18 | do | 18 | do |
diff --git a/shell/ash_test/ash-arith/arith-for.testsx b/shell/ash_test/ash-arith/arith-for.testsx index 585aa5133..4fa30ff90 100755 --- a/shell/ash_test/ash-arith/arith-for.testsx +++ b/shell/ash_test/ash-arith/arith-for.testsx | |||
@@ -73,7 +73,7 @@ done | |||
73 | type fx | 73 | type fx |
74 | fx | 74 | fx |
75 | 75 | ||
76 | # errors | 76 | # errors |
77 | for (( i=0; "i < 3" )) | 77 | for (( i=0; "i < 3" )) |
78 | do | 78 | do |
79 | echo $i | 79 | echo $i |
diff --git a/shell/ash_test/ash-arith/arith.tests b/shell/ash_test/ash-arith/arith.tests index 272fc3487..d65758e7d 100755 --- a/shell/ash_test/ash-arith/arith.tests +++ b/shell/ash_test/ash-arith/arith.tests | |||
@@ -144,12 +144,12 @@ echo 40 $(( 8 ^ 32 )) | |||
144 | #ash# echo 10 $(( 32#a )) | 144 | #ash# echo 10 $(( 32#a )) |
145 | #ash# echo 10 $(( 56#a )) | 145 | #ash# echo 10 $(( 56#a )) |
146 | #ash# echo 10 $(( 64#a )) | 146 | #ash# echo 10 $(( 64#a )) |
147 | #ash# | 147 | #ash# |
148 | #ash# echo 10 $(( 16#A )) | 148 | #ash# echo 10 $(( 16#A )) |
149 | #ash# echo 10 $(( 32#A )) | 149 | #ash# echo 10 $(( 32#A )) |
150 | #ash# echo 36 $(( 56#A )) | 150 | #ash# echo 36 $(( 56#A )) |
151 | #ash# echo 36 $(( 64#A )) | 151 | #ash# echo 36 $(( 64#A )) |
152 | #ash# | 152 | #ash# |
153 | #ash# echo 62 $(( 64#@ )) | 153 | #ash# echo 62 $(( 64#@ )) |
154 | #ash# echo 63 $(( 64#_ )) | 154 | #ash# echo 63 $(( 64#_ )) |
155 | 155 | ||
diff --git a/shell/ash_test/ash-heredoc/heredoc.tests b/shell/ash_test/ash-heredoc/heredoc.tests index 31316a58d..b3cdc3f7b 100755 --- a/shell/ash_test/ash-heredoc/heredoc.tests +++ b/shell/ash_test/ash-heredoc/heredoc.tests | |||
@@ -1,6 +1,6 @@ | |||
1 | # check order and content of multiple here docs | 1 | # check order and content of multiple here docs |
2 | 2 | ||
3 | cat << EOF1 << EOF2 | 3 | cat << EOF1 << EOF2 |
4 | hi | 4 | hi |
5 | EOF1 | 5 | EOF1 |
6 | there | 6 | there |
diff --git a/shell/ash_test/run-all b/shell/ash_test/run-all index ba1756e7d..02f6d2a9d 100755 --- a/shell/ash_test/run-all +++ b/shell/ash_test/run-all | |||
@@ -18,7 +18,7 @@ do_test() | |||
18 | cd "$1" || { echo "cannot cd $1!"; exit 1; } | 18 | cd "$1" || { echo "cannot cd $1!"; exit 1; } |
19 | for x in run-*; do | 19 | for x in run-*; do |
20 | test -f "$x" || continue | 20 | test -f "$x" || continue |
21 | case "$x" in | 21 | case "$x" in |
22 | "$0"|run-minimal|run-gprof) ;; | 22 | "$0"|run-minimal|run-gprof) ;; |
23 | *.orig|*~) ;; | 23 | *.orig|*~) ;; |
24 | #*) echo $x ; sh $x ;; | 24 | #*) echo $x ; sh $x ;; |
diff --git a/shell/msh.c b/shell/msh.c index 89c375380..41f4cc60d 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -50,36 +50,36 @@ static char *find_applet_by_name(const char *applet) | |||
50 | } | 50 | } |
51 | static void utoa_to_buf(unsigned n, char *buf, unsigned buflen) | 51 | static void utoa_to_buf(unsigned n, char *buf, unsigned buflen) |
52 | { | 52 | { |
53 | unsigned i, out, res; | 53 | unsigned i, out, res; |
54 | assert(sizeof(unsigned) == 4); | 54 | assert(sizeof(unsigned) == 4); |
55 | if (buflen) { | 55 | if (buflen) { |
56 | out = 0; | 56 | out = 0; |
57 | for (i = 1000000000; i; i /= 10) { | 57 | for (i = 1000000000; i; i /= 10) { |
58 | res = n / i; | 58 | res = n / i; |
59 | if (res || out || i == 1) { | 59 | if (res || out || i == 1) { |
60 | if (!--buflen) break; | 60 | if (!--buflen) break; |
61 | out++; | 61 | out++; |
62 | n -= res*i; | 62 | n -= res*i; |
63 | *buf++ = '0' + res; | 63 | *buf++ = '0' + res; |
64 | } | 64 | } |
65 | } | 65 | } |
66 | *buf = '\0'; | 66 | *buf = '\0'; |
67 | } | 67 | } |
68 | } | 68 | } |
69 | static void itoa_to_buf(int n, char *buf, unsigned buflen) | 69 | static void itoa_to_buf(int n, char *buf, unsigned buflen) |
70 | { | 70 | { |
71 | if (buflen && n<0) { | 71 | if (buflen && n < 0) { |
72 | n = -n; | 72 | n = -n; |
73 | *buf++ = '-'; | 73 | *buf++ = '-'; |
74 | buflen--; | 74 | buflen--; |
75 | } | 75 | } |
76 | utoa_to_buf((unsigned)n, buf, buflen); | 76 | utoa_to_buf((unsigned)n, buf, buflen); |
77 | } | 77 | } |
78 | static char local_buf[12]; | 78 | static char local_buf[12]; |
79 | static char *itoa(int n) | 79 | static char *itoa(int n) |
80 | { | 80 | { |
81 | itoa_to_buf(n, local_buf, sizeof(local_buf)); | 81 | itoa_to_buf(n, local_buf, sizeof(local_buf)); |
82 | return local_buf; | 82 | return local_buf; |
83 | } | 83 | } |
84 | #else | 84 | #else |
85 | # include <setjmp.h> | 85 | # include <setjmp.h> |
diff --git a/testsuite/bunzip2.tests b/testsuite/bunzip2.tests index 486122174..2b27dd56b 100755 --- a/testsuite/bunzip2.tests +++ b/testsuite/bunzip2.tests | |||
@@ -73,7 +73,7 @@ HELLO | |||
73 | prep; >t1; check "$unpack: already exists" "${bb}$unpack t1.$ext t2.$ext; echo \$?; cat t1 t2" | 73 | prep; >t1; check "$unpack: already exists" "${bb}$unpack t1.$ext t2.$ext; echo \$?; cat t1 t2" |
74 | 74 | ||
75 | 75 | ||
76 | # From old testsuite | 76 | # From old testsuite |
77 | expected="HELLO\n0\n" | 77 | expected="HELLO\n0\n" |
78 | prep; check "$unpack: stream unpack" "cat t1.$ext | ${bb}$unpack; echo $?" | 78 | prep; check "$unpack: stream unpack" "cat t1.$ext | ${bb}$unpack; echo $?" |
79 | 79 | ||
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index dbb342886..afb8459a2 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c | |||
@@ -284,7 +284,7 @@ struct bsd_globals { | |||
284 | static struct bsd_globals *bsd_globals_ptr; | 284 | static struct bsd_globals *bsd_globals_ptr; |
285 | 285 | ||
286 | #define disklabelbuffer (bsd_globals_ptr->disklabelbuffer) | 286 | #define disklabelbuffer (bsd_globals_ptr->disklabelbuffer) |
287 | #define xbsd_dlabel (bsd_globals_ptr->xbsd_dlabel) | 287 | #define xbsd_dlabel (bsd_globals_ptr->xbsd_dlabel) |
288 | 288 | ||
289 | 289 | ||
290 | /* Code */ | 290 | /* Code */ |