diff --git a/NEWS b/NEWS index b69a00bd4..4883f6124 100644 --- a/NEWS +++ b/NEWS @@ -35,7 +35,7 @@ Any uppercase BUG_* names are modernish shell bug IDs. '<#pattern'. The bug was caused by out-of-sync streams. Details and discussion: https://github.com/att/ast/issues/61 -- Patched code injection vulerability CVE-2019-14868. As a result, you can +- Patched code injection vulnerability CVE-2019-14868. As a result, you can no longer use expressions in imported numeric environment variables; only integer literals are allowed. diff --git a/lib/package/INIT.README b/lib/package/INIT.README index ec00e73be..cc7490d8b 100644 --- a/lib/package/INIT.README +++ b/lib/package/INIT.README @@ -140,7 +140,7 @@ All recorded changes follow. 11-03-21 package.sh: fix vpath probes 11-03-17 iffe.sh: fix cleanup to rm $tmp* instead of $tmp*.* 11-02-24 package.sh: change curl usage to "curl -L ..." -11-02-11 package.sh,C+probe,make.probe,mamprobe.sh: add ###.*archiac.*### +11-02-11 package.sh,C+probe,make.probe,mamprobe.sh: add ###.*archaic.*### 11-02-02 Makefile: add :MAPLIB: check for ancient -lw 11-02-02 make.probe: handle -print-multi-directory => 64 => /usr/lib64 /lib64 11-02-02 package.sh: HOSTTYPE=*,*cc*[,-*,...] sets CC [ and CCFLAGS ] diff --git a/lib/package/INIT.html b/lib/package/INIT.html index 837c8f97f..6ea280a8f 100644 --- a/lib/package/INIT.html +++ b/lib/package/INIT.html @@ -102,7 +102,7 @@ All recorded changes follow. 11-03-21 package.sh: fix vpath probes 11-03-17 iffe.sh: fix cleanup to rm $tmp* instead of $tmp*.* 11-02-24 package.sh: change curl usage to "curl -L ..." -11-02-11 package.sh,C+probe,make.probe,mamprobe.sh: add ###.*archiac.*### +11-02-11 package.sh,C+probe,make.probe,mamprobe.sh: add ###.*archaic.*### 11-02-02 Makefile: add :MAPLIB: check for ancient -lw 11-02-02 make.probe: handle -print-multi-directory => 64 => /usr/lib64 /lib64 11-02-02 package.sh: HOSTTYPE=*,*cc*[,-*,...] sets CC [ and CCFLAGS ] diff --git a/lib/package/ast-open.README b/lib/package/ast-open.README index ecbfd4043..c5e029e84 100644 --- a/lib/package/ast-open.README +++ b/lib/package/ast-open.README @@ -7079,7 +7079,7 @@ All recorded changes follow. 12-06-28 aso/aso.c: asoinit(0,0,0): 0: no specific init, 1: app initialized 12-06-27 sfio/sfvprintf.c: allow { L* z* } aliases for I* -- posix will probably pick one 12-06-26 regex/regnexec.c: fix uninitialized variable reference -12-06-26 comp/setlocale.c: utf8_wctomb() now calls (the corrrect) wc2utf8() +12-06-26 comp/setlocale.c: utf8_wctomb() now calls (the correct) wc2utf8() 12-06-25 string/chresc.c: accept \u[U+] and \u{U+} 12-06-24 regex/regcomp.c: mb [^...] must be marked "complicated" 12-06-20 port/astconf.c: increase DEBUG_astconf error debug levels (may leach into rt output) diff --git a/lib/package/ast-open.html b/lib/package/ast-open.html index a4637004a..5d459c187 100644 --- a/lib/package/ast-open.html +++ b/lib/package/ast-open.html @@ -8136,7 +8136,7 @@ All recorded changes follow. 12-06-28 aso/aso.c: asoinit(0,0,0): 0: no specific init, 1: app initialized 12-06-27 sfio/sfvprintf.c: allow { L* z* } aliases for I* -- posix will probably pick one 12-06-26 regex/regnexec.c: fix uninitialized variable reference -12-06-26 comp/setlocale.c: utf8_wctomb() now calls (the corrrect) wc2utf8() +12-06-26 comp/setlocale.c: utf8_wctomb() now calls (the correct) wc2utf8() 12-06-25 string/chresc.c: accept \u[U+<hex>] and \u{U+<hex>} 12-06-24 regex/regcomp.c: mb [^...] must be marked "complicated" 12-06-20 port/astconf.c: increase DEBUG_astconf error debug levels (may leach into rt output) diff --git a/lib/package/package.mk b/lib/package/package.mk index 921fa2d4d..1a945d9fe 100644 --- a/lib/package/package.mk +++ b/lib/package/package.mk @@ -30,7 +30,7 @@ * :LICENSE: license-class-pattern * :CATEGORY: category-id ... * :COVERS: package ... - * :REQURES: package ... + * :REQUIRES: package ... * :INDEX: index description line * :DESCRIPTION: * [ verbose description ] diff --git a/src/cmd/INIT/RELEASE b/src/cmd/INIT/RELEASE index 28f72c944..aa9947276 100644 --- a/src/cmd/INIT/RELEASE +++ b/src/cmd/INIT/RELEASE @@ -45,7 +45,7 @@ 11-03-21 package.sh: fix vpath probes 11-03-17 iffe.sh: fix cleanup to rm $tmp* instead of $tmp*.* 11-02-24 package.sh: change curl usage to "curl -L ..." -11-02-11 package.sh,C+probe,make.probe,mamprobe.sh: add ###.*archiac.*### +11-02-11 package.sh,C+probe,make.probe,mamprobe.sh: add ###.*archaic.*### 11-02-02 Makefile: add :MAPLIB: check for ancient -lw 11-02-02 make.probe: handle -print-multi-directory => 64 => /usr/lib64 /lib64 11-02-02 package.sh: HOSTTYPE=*,*cc*[,-*,...] sets CC [ and CCFLAGS ] diff --git a/src/cmd/INIT/package.mk b/src/cmd/INIT/package.mk index 921fa2d4d..1a945d9fe 100644 --- a/src/cmd/INIT/package.mk +++ b/src/cmd/INIT/package.mk @@ -30,7 +30,7 @@ * :LICENSE: license-class-pattern * :CATEGORY: category-id ... * :COVERS: package ... - * :REQURES: package ... + * :REQUIRES: package ... * :INDEX: index description line * :DESCRIPTION: * [ verbose description ] diff --git a/src/cmd/INIT/ratz.c b/src/cmd/INIT/ratz.c index 9a63327a1..52f75e95e 100644 --- a/src/cmd/INIT/ratz.c +++ b/src/cmd/INIT/ratz.c @@ -1398,7 +1398,7 @@ typedef struct internal_state { int nice_match; /* Stop searching when current match exceeds this */ /* used by trees.c: */ - /* Didn't use ct_data typedef below to supress compiler warning */ + /* Didn't use ct_data typedef below to suppress compiler warning */ struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ @@ -3822,7 +3822,7 @@ gzFile ZEXPORT gzfopen (fp, mode) /* =========================================================================== Read a byte from a gz_stream; update next_in and avail_in. Return EOF for end of file. - IN assertion: the stream s has been sucessfully opened for reading. + IN assertion: the stream s has been successfully opened for reading. */ local int get_byte(s) gz_stream *s; @@ -3847,7 +3847,7 @@ local int get_byte(s) mode to transparent if the gzip magic header is not present; set s->err to Z_DATA_ERROR if the magic header is present but the rest of the header is incorrect. - IN assertion: the stream s has already been created sucessfully; + IN assertion: the stream s has already been created successfully; s->stream.avail_in is zero for the first time, but may be non-zero for concatenated .gz files. */ diff --git a/src/cmd/ksh93/RELEASE b/src/cmd/ksh93/RELEASE index 431a4d4c8..198703862 100644 --- a/src/cmd/ksh93/RELEASE +++ b/src/cmd/ksh93/RELEASE @@ -59,7 +59,7 @@ 12-06-06 A bug in which exporting left or right justified fields could loose the field width has been fixed. 12-06-06 A bug on Solaris11 in which >; did not work for /dev/null was fixed. -12-06-05 A race condition which occured when stopping a builtin command +12-06-05 A race condition which occurred when stopping a builtin command invoked from a subshell has been fixed. 12-06-05 A bug with appending elements to an empty indexed array has been fixed. diff --git a/src/cmd/ksh93/data/builtins.c b/src/cmd/ksh93/data/builtins.c index 59b567235..36aca2aa7 100644 --- a/src/cmd/ksh93/data/builtins.c +++ b/src/cmd/ksh93/data/builtins.c @@ -1290,7 +1290,7 @@ USAGE_LICENSE "can be created.]" "[r?Do not treat \b\\\b specially when processing the input line.]" "[s?Save a copy of the input as an entry in the shell history file.]" -"[S?Treat the input as if it was saved from a spreasheet in csv format.]" +"[S?Treat the input as if it was saved from a spreadsheet in csv format.]" "[u]#[fd:=0?Read from file descriptor number \afd\a instead of standard input.]" "[t]:[timeout?Specify a timeout \atimeout\a in seconds when reading from " "a terminal or pipe.]" diff --git a/src/cmd/ksh93/nval.3 b/src/cmd/ksh93/nval.3 index 9c09437d6..bb058ca5c 100644 --- a/src/cmd/ksh93/nval.3 +++ b/src/cmd/ksh93/nval.3 @@ -502,7 +502,7 @@ The first argument is the original node, the second argument is the new node, and the third argument is the flags that were passed down to \f5nv_clone()\fP. It must return a new instance of the \f5Namfun_t*\fP \f5fp\fP. -If omitted, then memory whose size is determinated by the \f5size\fP +If omitted, then memory whose size is determined by the \f5size\fP field of \f5fp\fP, if non-zero, or \f5fp->disc\fP, will be allocated and copied from \f5fp\fP. .PP diff --git a/src/cmd/ksh93/tests/nameref.sh b/src/cmd/ksh93/tests/nameref.sh index 81e4df563..6e3815a61 100755 --- a/src/cmd/ksh93/tests/nameref.sh +++ b/src/cmd/ksh93/tests/nameref.sh @@ -675,7 +675,7 @@ typeset -a arr=( ( 1 2 3 ) ( 4 5 6 ) ( 7 8 9 )) typeset -n ref=arr[1] [[ $ref == 4 ]] || err_exit '$ref should be 4' [[ ${ref[@]} == '4 5 6' ]] || err_exit '${ref[@]} should be "4 5 6"' -[[ $ref == "${arr[1]}" ]] || err_exit '$ref shuld be ${arr[1]}' +[[ $ref == "${arr[1]}" ]] || err_exit '$ref should be ${arr[1]}' [[ ${ref[@]} == "${arr[1][@]}" ]] || err_exit '${ref[@]} should be ${arr[1][@]}' function fun2 diff --git a/src/cmd/ksh93/tests/restricted.sh b/src/cmd/ksh93/tests/restricted.sh index 320181edb..4665923ea 100755 --- a/src/cmd/ksh93/tests/restricted.sh +++ b/src/cmd/ksh93/tests/restricted.sh @@ -59,10 +59,10 @@ rksh -c '[[ -o restricted ]]' || err_exit 'restricted option not set' [[ $(rksh -c 'print hello') == hello ]] || err_exit 'unable to run print' check_restricted /bin/echo || err_exit '/bin/echo not resticted' check_restricted ./echo || err_exit './echo not resticted' -check_restricted 'SHELL=ksh' || err_exit 'SHELL asignment not resticted' -check_restricted 'PATH=/bin' || err_exit 'PATH asignment not resticted' -check_restricted 'FPATH=/bin' || err_exit 'FPATH asignment not resticted' -check_restricted 'ENV=/bin' || err_exit 'ENV asignment not resticted' +check_restricted 'SHELL=ksh' || err_exit 'SHELL assignment not resticted' +check_restricted 'PATH=/bin' || err_exit 'PATH assignment not resticted' +check_restricted 'FPATH=/bin' || err_exit 'FPATH assignment not resticted' +check_restricted 'ENV=/bin' || err_exit 'ENV assignment not resticted' check_restricted 'print > file' || err_exit '> file not restricted' > empty check_restricted 'print <> empty' || err_exit '<> file not restricted' diff --git a/src/cmd/ksh93/tests/statics.sh b/src/cmd/ksh93/tests/statics.sh index 7e6727927..2168f156c 100755 --- a/src/cmd/ksh93/tests/statics.sh +++ b/src/cmd/ksh93/tests/statics.sh @@ -654,7 +654,7 @@ test1 test2 -# Test visibilty of "global" vs. "static" variables. if we have a "static" variable in a +# Test visibility of "global" vs. "static" variables. if we have a "static" variable in a # function and "unset" it we should see a global variable with the same # name, right ? integer hx=5 diff --git a/src/lib/libast/RELEASE b/src/lib/libast/RELEASE index 3836977a4..bb9b579dc 100644 --- a/src/lib/libast/RELEASE +++ b/src/lib/libast/RELEASE @@ -3,7 +3,7 @@ 12-06-28 aso/aso.c: asoinit(0,0,0): 0: no specific init, 1: app initialized 12-06-27 sfio/sfvprintf.c: allow { L* z* } aliases for I* -- posix will probably pick one 12-06-26 regex/regnexec.c: fix uninitialized variable reference -12-06-26 comp/setlocale.c: utf8_wctomb() now calls (the corrrect) wc2utf8() +12-06-26 comp/setlocale.c: utf8_wctomb() now calls (the correct) wc2utf8() 12-06-25 string/chresc.c: accept \u[U+] and \u{U+} 12-06-24 regex/regcomp.c: mb [^...] must be marked "complicated" 12-06-20 port/astconf.c: increase DEBUG_astconf error debug levels (may leach into rt output) diff --git a/src/lib/libast/disc/sfdcmore.c b/src/lib/libast/disc/sfdcmore.c index 900b55d14..068b351df 100644 --- a/src/lib/libast/disc/sfdcmore.c +++ b/src/lib/libast/disc/sfdcmore.c @@ -295,7 +295,7 @@ Sfdisc_t* dp; /* * push the more discipline on f * if prompt==0 then a default ansi prompt is used - * if rows==0 or cols==0 then they are deterimined from the tty + * if rows==0 or cols==0 then they are determined from the tty * if f==sfstdout then input on sfstdin also resets the state */ diff --git a/src/lib/libast/include/glob.h b/src/lib/libast/include/glob.h index a118db935..aa82c2acb 100644 --- a/src/lib/libast/include/glob.h +++ b/src/lib/libast/include/glob.h @@ -107,7 +107,7 @@ struct _glob_ #define GLOB_STARSTAR 0x0080 /* enable [/]**[/] expansion */ #define GLOB_BRACE 0x0100 /* enable {...} expansion */ #define GLOB_ICASE 0x0200 /* ignore case on match */ -#define GLOB_COMPLETE 0x0400 /* shell file completeion */ +#define GLOB_COMPLETE 0x0400 /* shell file completion */ #define GLOB_AUGMENTED 0x0800 /* augmented shell patterns */ #define GLOB_STACK 0x1000 /* allocate on current stack */ #define GLOB_LIST 0x2000 /* just create gl_list */ diff --git a/src/lib/libast/misc/stk.c b/src/lib/libast/misc/stk.c index d937437a9..f7afd1531 100644 --- a/src/lib/libast/misc/stk.c +++ b/src/lib/libast/misc/stk.c @@ -130,7 +130,7 @@ static char *overflow(int n) } /* - * initialize stkstd, sfio operations may have already occcured + * initialize stkstd, sfio operations may have already occurred */ static void stkinit(size_t size) {