svn commit: r365037 - in head/bin/sh: . tests/builtins

2020-09-01 Thread Jilles Tjoelker
Author: jilles Date: Tue Sep 1 13:19:15 2020 New Revision: 365037 URL: https://svnweb.freebsd.org/changeset/base/365037 Log: sh: Write absolute path in command -vV and type POSIX is pretty clear that command -v, command -V and type shall write absolute pathnames. Therefore, we need to

svn commit: r364919 - in head/bin/sh: . tests/execution

2020-08-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Aug 28 15:35:45 2020 New Revision: 364919 URL: https://svnweb.freebsd.org/changeset/base/364919 Log: sh: Keep ignored SIGINT/SIGQUIT after set in a background job If job control is not enabled, a background job (... &) ignores SIGINT and SIGQUIT, but this can be

svn commit: r363057 - head/bin/sh

2020-07-09 Thread Jilles Tjoelker
Author: jilles Date: Thu Jul 9 20:53:56 2020 New Revision: 363057 URL: https://svnweb.freebsd.org/changeset/base/363057 Log: sh: Do not ignore INTOFF during a trap INTOFF postpones SIGINT processing and INTON enables it again. This is important so an interactive shell can return to the

svn commit: r363054 - stable/12/bin/sh/tests

2020-07-09 Thread Jilles Tjoelker
Author: jilles Date: Thu Jul 9 17:43:25 2020 New Revision: 363054 URL: https://svnweb.freebsd.org/changeset/base/363054 Log: MFC r362738: sh/tests: Re-enable bin.sh.execution.functional_test.bg12.0 PR: 247559 Modified: stable/12/bin/sh/tests/functional_test.sh Directory

svn commit: r363053 - stable/12/bin/sh/tests/execution

2020-07-09 Thread Jilles Tjoelker
Author: jilles Date: Thu Jul 9 17:42:31 2020 New Revision: 363053 URL: https://svnweb.freebsd.org/changeset/base/363053 Log: MFC r362737: sh/tests: Fix flaky execution/bg12.0 When job control is not enabled, the shell ignores SIGINT while waiting for a foreground process unless that

svn commit: r362738 - head/bin/sh/tests

2020-06-28 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 28 21:33:08 2020 New Revision: 362738 URL: https://svnweb.freebsd.org/changeset/base/362738 Log: sh/tests: Re-enable bin.sh.execution.functional_test.bg12.0 This reverts r362646. PR: 247559 MFC after:1 week Modified:

svn commit: r362737 - head/bin/sh/tests/execution

2020-06-28 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 28 21:15:29 2020 New Revision: 362737 URL: https://svnweb.freebsd.org/changeset/base/362737 Log: sh/tests: Fix flaky execution/bg12.0 When job control is not enabled, the shell ignores SIGINT while waiting for a foreground process unless that process exits on

svn commit: r362467 - stable/12/bin/sh/tests/execution

2020-06-21 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 21 16:06:01 2020 New Revision: 362467 URL: https://svnweb.freebsd.org/changeset/base/362467 Log: MFC r362182: sh/tests: Add tests for SIGINT in non-jobc background commands If job control is not enabled, background commands shall ignore SIGINT and SIGQUIT,

svn commit: r362182 - head/bin/sh/tests/execution

2020-06-14 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 14 19:41:24 2020 New Revision: 362182 URL: https://svnweb.freebsd.org/changeset/base/362182 Log: sh/tests: Add tests for SIGINT in non-jobc background commands If job control is not enabled, background commands shall ignore SIGINT and SIGQUIT, and it shall be

svn commit: r361647 - in head/bin/sh: . tests/execution

2020-05-30 Thread Jilles Tjoelker
Author: jilles Date: Sat May 30 16:00:49 2020 New Revision: 361647 URL: https://svnweb.freebsd.org/changeset/base/361647 Log: sh: Allow more scripts without #! Austin Group bugs #1226 and #1250 changed the requirements for shell scripts without #! (POSIX does not specify #!; this is

svn commit: r361646 - in stable/12/bin/sh: . tests/execution

2020-05-30 Thread Jilles Tjoelker
Author: jilles Date: Sat May 30 13:39:56 2020 New Revision: 361646 URL: https://svnweb.freebsd.org/changeset/base/361646 Log: MFC r361112,r361117: sh: Fix double INTON with vfork The shell maintains a count of the number of times SIGINT processing has been disabled via INTOFF, so SIGINT

svn commit: r361384 - head/bin/sh

2020-05-22 Thread Jilles Tjoelker
Author: jilles Date: Fri May 22 14:46:23 2020 New Revision: 361384 URL: https://svnweb.freebsd.org/changeset/base/361384 Log: sh: Remove a comment that was obsoleted by r358152 Since r358152, the read builtin has used a buffer. Also, remove a space at the end of the line in a comment.

svn commit: r361117 - head/bin/sh/tests/execution

2020-05-16 Thread Jilles Tjoelker
Author: jilles Date: Sat May 16 19:38:58 2020 New Revision: 361117 URL: https://svnweb.freebsd.org/changeset/base/361117 Log: sh/tests: Fix keywords on newly added test Modified: Directory Properties: head/bin/sh/tests/execution/unknown2.0 (props changed)

svn commit: r361112 - in head/bin/sh: . tests/execution

2020-05-16 Thread Jilles Tjoelker
Author: jilles Date: Sat May 16 16:29:23 2020 New Revision: 361112 URL: https://svnweb.freebsd.org/changeset/base/361112 Log: sh: Fix double INTON with vfork The shell maintains a count of the number of times SIGINT processing has been disabled via INTOFF, so SIGINT processing resumes

svn commit: r360992 - head/bin/sh/tests/parser

2020-05-12 Thread Jilles Tjoelker
Author: jilles Date: Tue May 12 21:59:21 2020 New Revision: 360992 URL: https://svnweb.freebsd.org/changeset/base/360992 Log: sh/tests: Test some obscure cases with aliasing keywords Added: head/bin/sh/tests/parser/alias19.0 (contents, props changed)

svn commit: r360452 - head/bin/sh

2020-04-28 Thread Jilles Tjoelker
Author: jilles Date: Tue Apr 28 20:34:27 2020 New Revision: 360452 URL: https://svnweb.freebsd.org/changeset/base/360452 Log: sh: Assert INTOFF rather than applying it in ck* As I noted in https://reviews.freebsd.org/D22756, INTOFF should be in effect when calling

svn commit: r360210 - head/bin/sh

2020-04-22 Thread Jilles Tjoelker
Author: jilles Date: Wed Apr 22 21:45:43 2020 New Revision: 360210 URL: https://svnweb.freebsd.org/changeset/base/360210 Log: sh: Remove remnants to compile out fc completely r360139 made compiling with NO_HISTORY work. This #define does not remove the fc and bind builtins completely but

Re: svn commit: r357138 - head/bin/pwait

2020-01-30 Thread Jilles Tjoelker
) @@ -53,8 +53,7 @@ static void usage(void) { - fprintf(stderr, "usage: pwait [-t timeout] [-v] pid ...\n"); - exit(EX_USAGE); + errx(EX_USAGE, "usage: pwait [-t timeout] [-v] pid ..."); This adds a "pwait: " before the line, which most other

svn commit: r356251 - head/bin/sh

2020-01-01 Thread Jilles Tjoelker
Author: jilles Date: Wed Jan 1 12:06:37 2020 New Revision: 356251 URL: https://svnweb.freebsd.org/changeset/base/356251 Log: sh: Fix rare memory leak with SIGINT If getcwd() failed earlier on but later succeeded in the pwd builtin, there was no INTOFF protection between calling

svn commit: r356208 - head/bin/sh/tests/execution

2019-12-30 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 30 21:32:55 2019 New Revision: 356208 URL: https://svnweb.freebsd.org/changeset/base/356208 Log: sh: Test that executing various binary files is rejected If executing a file fails with an [ENOEXEC] error, the shell executes the file as a shell script, except

Re: svn commit: r346017 - in head: libexec/rc libexec/rc/rc.d share/man/man5

2019-10-12 Thread Jilles Tjoelker
. > >>> Hang on, > >>> [crees@pegasus]~% sudo kldload -n zfsctrl && echo yes > >>> yes > >>I think your testing the return value of sudo here? > >Sudo returns the child's return value. > Turns out Oliver had also reported this to current@ with a log > https://lists.freebsd.org/pipermail/freebsd-current/2019-April/073148.html > Jilles@, mind if I revert this while I get some testing on this > scenario done? > It seems to me that zfs may not be included in the kernel, just > zfsctrl, or something like that. It seems like kldload -n does not work as expected for zfs, so reverting seems the right approach. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r353148 - in stable/12: contrib/netbsd-tests/lib/libc/sys tests/sys/posixshm tests/sys/vm

2019-10-06 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 6 20:36:25 2019 New Revision: 353148 URL: https://svnweb.freebsd.org/changeset/base/353148 Log: MFC r352495,r352869: Adjust tests for page fault changes in r353102 PR: 211924 Added: stable/12/tests/sys/vm/page_fault_signal.c - copied, changed

svn commit: r352869 - in head: contrib/netbsd-tests/lib/libc/sys tests/sys/posixshm tests/sys/vm

2019-09-29 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 29 15:17:58 2019 New Revision: 352869 URL: https://svnweb.freebsd.org/changeset/base/352869 Log: Adjust tests after page fault changes in r352807 Commit r352807 fixed various signal numbers and codes from page faults; adjust the tests so they expect the fixes

svn commit: r352495 - head/tests/sys/vm

2019-09-18 Thread Jilles Tjoelker
:32 2019 (r352495) @@ -0,0 +1,184 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2019 Jilles Tjoelker + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1

svn commit: r352492 - stable/11/usr.bin/procstat/tests

2019-09-18 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 18 19:28:17 2019 New Revision: 352492 URL: https://svnweb.freebsd.org/changeset/base/352492 Log: MFC r351819: procstat/tests: Fix flakiness by waiting for program to start Some of the procstat tests start a program "while1" and examine the process using

svn commit: r352491 - stable/12/usr.bin/procstat/tests

2019-09-18 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 18 19:21:20 2019 New Revision: 352491 URL: https://svnweb.freebsd.org/changeset/base/352491 Log: MFC r351819: procstat/tests: Fix flakiness by waiting for program to start Some of the procstat tests start a program "while1" and examine the process using

svn commit: r351819 - head/usr.bin/procstat/tests

2019-09-04 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 4 16:25:41 2019 New Revision: 351819 URL: https://svnweb.freebsd.org/changeset/base/351819 Log: procstat/tests: Fix flakiness by waiting for program to start Some of the procstat tests start a program "while1" and examine the process using procstat, but did

svn commit: r345617 - stable/11/bin/sh

2019-09-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Mar 27 22:09:35 2019 New Revision: 345617 URL: https://svnweb.freebsd.org/changeset/base/345617 Log: MFC r344306: sh: Send normal output from bind builtin to stdout PR: 233343 Modified: stable/11/bin/sh/histedit.c stable/11/bin/sh/output.c

svn commit: r345613 - stable/12/bin/sh

2019-09-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Mar 27 21:53:44 2019 New Revision: 345613 URL: https://svnweb.freebsd.org/changeset/base/345613 Log: MFC r344306: sh: Send normal output from bind builtin to stdout PR: 233343 Modified: stable/12/bin/sh/histedit.c stable/12/bin/sh/output.c

Re: svn commit: r351643 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common: dtraceUtil speculation

2019-09-03 Thread Jilles Tjoelker
es not allow it at all. Apart from the fact that the resulting bytes depend on the filesystem type, this operation is problematic because it may expose filenames that were previously deleted. The files /etc/group and /etc/passwd exist on most operating systems, but for optimal portability a tempora

svn commit: r350658 - head/tests/sys/kern

2019-08-06 Thread Jilles Tjoelker
l_zombie.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tests/sys/kern/kill_zombie.c Tue Aug 6 21:17:22 2019 (r350658) @@ -0,0 +1,65 @@ +/*- + * Copyright (c) 2018 Jilles Tjoelker + * All right

svn commit: r350615 - stable/11/usr.bin/printf

2019-08-05 Thread Jilles Tjoelker
Author: jilles Date: Mon Aug 5 20:21:35 2019 New Revision: 350615 URL: https://svnweb.freebsd.org/changeset/base/350615 Log: MFC r350425: printf(1): Note that \c only works in %b strings PR: 238313 Modified: stable/11/usr.bin/printf/printf.1 Directory Properties: stable/11/

svn commit: r350613 - stable/12/usr.bin/printf

2019-08-05 Thread Jilles Tjoelker
Author: jilles Date: Mon Aug 5 20:19:38 2019 New Revision: 350613 URL: https://svnweb.freebsd.org/changeset/base/350613 Log: MFC r350425: printf(1): Note that \c only works in %b strings PR: 238313 Modified: stable/12/usr.bin/printf/printf.1 Directory Properties: stable/12/

svn commit: r350425 - head/usr.bin/printf

2019-07-29 Thread Jilles Tjoelker
Author: jilles Date: Mon Jul 29 20:43:07 2019 New Revision: 350425 URL: https://svnweb.freebsd.org/changeset/base/350425 Log: printf(1): Note that \c only works in %b strings PR: 238313 Reported by: Andras Farkas MFC after:1 week Modified: head/usr.bin/printf/printf.1

Re: svn commit: r349974 - head/libexec/rc/rc.d

2019-07-28 Thread Jilles Tjoelker
the script > never creates or changes that directory if it already exists. I like it. However, the /var/account directory is normally created by mtree: etc/mtree/BSD.var.dist. Perhaps the permissions should be adjusted there as well. -- Jilles Tjoelker _

Re: svn commit: r350116 - head/lib/libc/gen

2019-07-19 Thread Jilles Tjoelker
roc_debug=0. This security sysctl is currently also lowering security. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r346017 - in head: libexec/rc libexec/rc/rc.d share/man/man5

2019-04-09 Thread Jilles Tjoelker
. > >>> Hang on, > >>> [crees@pegasus]~% sudo kldload -n zfsctrl && echo yes > >>> yes > >>I think your testing the return value of sudo here? > >Sudo returns the child's return value. > Turns out Oliver had also reported this to current@ with a log > https://lists.freebsd.org/pipermail/freebsd-current/2019-April/073148.html > Jilles@, mind if I revert this while I get some testing on this > scenario done? > It seems to me that zfs may not be included in the kernel, just > zfsctrl, or something like that. It seems like kldload -n does not work as expected for zfs, so reverting seems the right approach. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r345617 - stable/11/bin/sh

2019-03-27 Thread Jilles Tjoelker
Author: jilles Date: Wed Mar 27 22:09:35 2019 New Revision: 345617 URL: https://svnweb.freebsd.org/changeset/base/345617 Log: MFC r344306: sh: Send normal output from bind builtin to stdout PR: 233343 Modified: stable/11/bin/sh/histedit.c stable/11/bin/sh/output.c

svn commit: r345613 - stable/12/bin/sh

2019-03-27 Thread Jilles Tjoelker
Author: jilles Date: Wed Mar 27 21:53:44 2019 New Revision: 345613 URL: https://svnweb.freebsd.org/changeset/base/345613 Log: MFC r344306: sh: Send normal output from bind builtin to stdout PR: 233343 Modified: stable/12/bin/sh/histedit.c stable/12/bin/sh/output.c

svn commit: r345561 - in stable/11/bin/sh: . tests/execution

2019-03-26 Thread Jilles Tjoelker
Author: jilles Date: Tue Mar 26 22:34:07 2019 New Revision: 345561 URL: https://svnweb.freebsd.org/changeset/base/345561 Log: MFC r344502: sh: Add set -o pipefail The pipefail option allows checking the exit status of all commands in a pipeline more easily, at a limited cost of

svn commit: r345559 - stable/11/bin/sh

2019-03-26 Thread Jilles Tjoelker
Author: jilles Date: Tue Mar 26 21:30:26 2019 New Revision: 345559 URL: https://svnweb.freebsd.org/changeset/base/345559 Log: MFC r328818: sh: Refactor job status printing, preparing for -o pipefail and similar No functional change is intended. PR: 224270 Modified:

svn commit: r345556 - stable/11/bin/sh

2019-03-26 Thread Jilles Tjoelker
Author: jilles Date: Tue Mar 26 20:47:30 2019 New Revision: 345556 URL: https://svnweb.freebsd.org/changeset/base/345556 Log: MFC r327475: sh: Move various structs from jobs.h to jobs.c These implementation details of jobs.c need not be exposed. PR: 224270 Modified:

svn commit: r345487 - in stable/12/bin/sh: . tests/execution

2019-03-24 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 24 22:10:26 2019 New Revision: 345487 URL: https://svnweb.freebsd.org/changeset/base/345487 Log: MFC r344502: sh: Add set -o pipefail The pipefail option allows checking the exit status of all commands in a pipeline more easily, at a limited cost of

svn commit: r345117 - in stable/12/bin/sh: . tests/expansion

2019-03-13 Thread Jilles Tjoelker
Author: jilles Date: Wed Mar 13 21:53:10 2019 New Revision: 345117 URL: https://svnweb.freebsd.org/changeset/base/345117 Log: MFC r342880,r343981,r344902: sh: Fix $((-9223372036854775808)) Since $((9223372036854775808)) overflows, $((-9223372036854775808)) was not parsed correctly (with

svn commit: r344902 - head/bin/sh/tests/expansion

2019-03-07 Thread Jilles Tjoelker
Author: jilles Date: Thu Mar 7 22:51:58 2019 New Revision: 344902 URL: https://svnweb.freebsd.org/changeset/base/344902 Log: sh/tests: Improve failure messages of expansion/arith15.0 Modified: head/bin/sh/tests/expansion/arith15.0 Modified: head/bin/sh/tests/expansion/arith15.0

Re: svn commit: r344570 - head/usr.sbin/sysrc

2019-02-26 Thread Jilles Tjoelker
y after an empty line, but I don't think it is necessary for this commit as the information that would be written there is obvious from the diff. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r344502 - in head/bin/sh: . tests/execution

2019-02-24 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 24 21:05:13 2019 New Revision: 344502 URL: https://svnweb.freebsd.org/changeset/base/344502 Log: sh: Add set -o pipefail The pipefail option allows checking the exit status of all commands in a pipeline more easily, at a limited cost of complexity in sh

svn commit: r344306 - head/bin/sh

2019-02-19 Thread Jilles Tjoelker
Author: jilles Date: Tue Feb 19 21:27:30 2019 New Revision: 344306 URL: https://svnweb.freebsd.org/changeset/base/344306 Log: sh: Send normal output from bind builtin to stdout PR: 233343 Submitted by: Yuichiro NAITO (original version) Modified: head/bin/sh/histedit.c

svn commit: r344237 - stable/12/sbin/dhclient

2019-02-17 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 17 20:25:07 2019 New Revision: 344237 URL: https://svnweb.freebsd.org/changeset/base/344237 Log: MFC r343896,r343922: dhclient: Pass through exit status from script The wait status is translated into 8 bits the same way as the shell calculates $?. Modified:

svn commit: r343981 - in head/bin/sh: . tests/expansion

2019-02-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 10 22:23:05 2019 New Revision: 343981 URL: https://svnweb.freebsd.org/changeset/base/343981 Log: sh: Restore $((x)) error checking after fix for $((-9223372036854775808)) SVN r342880 was designed to fix $((-9223372036854775808)) and things like

svn commit: r343922 - head/sbin/dhclient

2019-02-08 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 8 23:03:28 2019 New Revision: 343922 URL: https://svnweb.freebsd.org/changeset/base/343922 Log: dhclient: Return non-zero status when script exits due to a signal r343896 made it such that a non-zero exit status was passed through, but was still wrong if the

Re: svn commit: r343896 - head/sbin/dhclient

2019-02-08 Thread Jilles Tjoelker
his case and in practice 0 is a common value. Perhaps you want return WIFEXITED(wstatus) ? WEXITSTATUS(wstatus) : 128 + WTERMSIG(wstatus); imitating what the shell does to translate a wait status into 8 bits? -- Jilles Tjoelker ___ svn-src-all@freebsd.org mail

svn commit: r343460 - stable/11/lib/libedit

2019-01-25 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 25 22:52:49 2019 New Revision: 343460 URL: https://svnweb.freebsd.org/changeset/base/343460 Log: MFC r343105: libedit: Avoid out of bounds read in 'bind' command This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c: Make sure that argv is NULL

svn commit: r343415 - stable/12/lib/libedit

2019-01-24 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 24 22:34:30 2019 New Revision: 343415 URL: https://svnweb.freebsd.org/changeset/base/343415 Log: MFC r343105: libedit: Avoid out of bounds read in 'bind' command This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c: Make sure that argv is NULL

svn commit: r343215 - head/bin/sh

2019-01-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 20 14:25:25 2019 New Revision: 343215 URL: https://svnweb.freebsd.org/changeset/base/343215 Log: sh: Send libedit "ferr" output to fd 2 The libedit "fout" output must be sent to fd 2 since it contains prompts that POSIX says must be sent to fd 2. However, the

svn commit: r343105 - head/lib/libedit

2019-01-16 Thread Jilles Tjoelker
Author: jilles Date: Wed Jan 16 21:59:18 2019 New Revision: 343105 URL: https://svnweb.freebsd.org/changeset/base/343105 Log: libedit: Avoid out of bounds read in 'bind' command This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c: Make sure that argv is NULL terminated since

svn commit: r343003 - stable/11/usr.bin/getconf

2019-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 18:48:13 2019 New Revision: 343003 URL: https://svnweb.freebsd.org/changeset/base/343003 Log: MFC r342817: getconf(1): Minor mdoc fix Modified: stable/11/usr.bin/getconf/getconf.1 Directory Properties: stable/11/ (props changed) Modified:

svn commit: r343001 - stable/12/lib/libc/sys

2019-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 13:57:56 2019 New Revision: 343001 URL: https://svnweb.freebsd.org/changeset/base/343001 Log: MFC r342816: thr_wake(2): Minor mdoc fixes Modified: stable/12/lib/libc/sys/thr_wake.2 Directory Properties: stable/12/ (props changed) Modified:

svn commit: r343002 - stable/11/lib/libc/sys

2019-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 18:47:37 2019 New Revision: 343002 URL: https://svnweb.freebsd.org/changeset/base/343002 Log: MFC r342816: thr_wake(2): Minor mdoc fixes Modified: stable/11/lib/libc/sys/thr_wake.2 Directory Properties: stable/11/ (props changed) Modified:

svn commit: r343000 - stable/12/usr.bin/getconf

2019-01-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 13 13:57:11 2019 New Revision: 343000 URL: https://svnweb.freebsd.org/changeset/base/343000 Log: MFC r342817: getconf(1): Minor mdoc fix Modified: stable/12/usr.bin/getconf/getconf.1 Directory Properties: stable/12/ (props changed) Modified:

svn commit: r342817 - head/usr.bin/getconf

2019-01-06 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 6 21:43:14 2019 New Revision: 342817 URL: https://svnweb.freebsd.org/changeset/base/342817 Log: getconf(1): Minor mdoc fix MFC after:1 week Modified: head/usr.bin/getconf/getconf.1 Modified: head/usr.bin/getconf/getconf.1

svn commit: r342816 - head/lib/libc/sys

2019-01-06 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 6 21:34:05 2019 New Revision: 342816 URL: https://svnweb.freebsd.org/changeset/base/342816 Log: thr_wake(2): Minor mdoc fixes MFC after:1 week Modified: head/lib/libc/sys/thr_wake.2 Modified: head/lib/libc/sys/thr_wake.2

svn commit: r342741 - head/bin/sh/tests/execution

2019-01-03 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 3 20:23:12 2019 New Revision: 342741 URL: https://svnweb.freebsd.org/changeset/base/342741 Log: sh: Add test for exported but unset variables PR: 233545 Added: head/bin/sh/tests/execution/env1.0 (contents, props changed) Modified:

svn commit: r342740 - head/bin/sh

2019-01-03 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 3 20:22:35 2019 New Revision: 342740 URL: https://svnweb.freebsd.org/changeset/base/342740 Log: sh: Do not place exported but unset variables into the environment PR: 233545 Submitted by: Jan Beich Obtained from:NetBSD Modified:

svn commit: r342572 - head/sys/kern

2018-12-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Dec 28 13:32:14 2018 New Revision: 342572 URL: https://svnweb.freebsd.org/changeset/base/342572 Log: pfind, pfind_any: Correct zombie logic SVN r340744 erroneously changed pfind() to return any process including zombies and pfind_any() to return only non-zombie

svn commit: r341767 - in stable/12/bin/sh: . tests/expansion

2018-12-09 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 9 19:14:21 2018 New Revision: 341767 URL: https://svnweb.freebsd.org/changeset/base/341767 Log: MFC r341164: sh: Fix ${param?} default error message If word in ${param?word} is missing, the shell shall write a default error message. So expanding ${param?}

svn commit: r341725 - head/bin/sh

2018-12-08 Thread Jilles Tjoelker
Author: jilles Date: Sat Dec 8 12:49:19 2018 New Revision: 341725 URL: https://svnweb.freebsd.org/changeset/base/341725 Log: sh(1): Remove -c string from set builtin documentation Altering the -c string at run time does not make sense and is not possible. MFC after:1 week

svn commit: r341164 - in head/bin/sh: . tests/expansion

2018-11-28 Thread Jilles Tjoelker
Author: jilles Date: Wed Nov 28 20:03:53 2018 New Revision: 341164 URL: https://svnweb.freebsd.org/changeset/base/341164 Log: sh: Fix ${param?} default error message If word in ${param?word} is missing, the shell shall write a default error message. So expanding ${param?} when param is

svn commit: r341097 - in head/bin/sh: . tests/errors

2018-11-27 Thread Jilles Tjoelker
Author: jilles Date: Tue Nov 27 21:49:59 2018 New Revision: 341097 URL: https://svnweb.freebsd.org/changeset/base/341097 Log: sh: Use 126 and 127 exit status for failures opening a script This affects scripts named on the command line, named with a '.' special builtin and found via the

svn commit: r340284 - head/bin/sh

2018-11-09 Thread Jilles Tjoelker
Author: jilles Date: Fri Nov 9 14:58:24 2018 New Revision: 340284 URL: https://svnweb.freebsd.org/changeset/base/340284 Log: sh: Unify EXERROR and EXEXEC The difference between EXERROR and EXEXEC was that EXEXEC passed along exitstatus and EXERROR set exitstatus to 2 in the handling

svn commit: r339822 - head/bin/sh

2018-10-27 Thread Jilles Tjoelker
Author: jilles Date: Sat Oct 27 20:17:57 2018 New Revision: 339822 URL: https://svnweb.freebsd.org/changeset/base/339822 Log: sh: Use exitstatus instead of exerrno to pass EXEXEC status No functional change is intended. Modified: head/bin/sh/eval.c head/bin/sh/exec.c

svn commit: r338995 - stable/11/bin/sh

2018-09-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Sep 28 12:29:53 2018 New Revision: 338995 URL: https://svnweb.freebsd.org/changeset/base/338995 Log: MFC r338473: sh: Fix formal overflow in pointer arithmetic The intention is to lower the value of the pointer, which according to ubsan cannot be done by adding

svn commit: r338473 - head/bin/sh

2018-09-05 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 5 19:16:09 2018 New Revision: 338473 URL: https://svnweb.freebsd.org/changeset/base/338473 Log: sh: Fix formal overflow in pointer arithmetic The intention is to lower the value of the pointer, which according to ubsan cannot be done by adding an unsigned

svn commit: r337728 - head/usr.bin/printf/tests

2018-08-13 Thread Jilles Tjoelker
Author: jilles Date: Mon Aug 13 21:54:27 2018 New Revision: 337728 URL: https://svnweb.freebsd.org/changeset/base/337728 Log: printf: Add test for width and precision in %b format PR: 229641 Submitted by: pfg Added: head/usr.bin/printf/tests/regress.bwidth.out (contents,

svn commit: r337618 - head/usr.bin/printf

2018-08-11 Thread Jilles Tjoelker
Author: jilles Date: Sat Aug 11 11:13:34 2018 New Revision: 337618 URL: https://svnweb.freebsd.org/changeset/base/337618 Log: printf: Fix \c in %b in printf builtin exiting the shell after r337458 SVN r337458 erroneously partially reverted r265885. This is immediately visible when

svn commit: r336320 - in head/bin/sh: . tests/builtins

2018-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 21:55:17 2018 New Revision: 336320 URL: https://svnweb.freebsd.org/changeset/base/336320 Log: sh: Don't treat % specially in CDPATH Added: head/bin/sh/tests/builtins/cd11.0 (contents, props changed) Modified: head/bin/sh/cd.c head/bin/sh/exec.c

svn commit: r336303 - head/bin/sh

2018-07-15 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 15 09:14:30 2018 New Revision: 336303 URL: https://svnweb.freebsd.org/changeset/base/336303 Log: sh: Don't use padvance() for MAIL/MAILPATH Using padvance() requires undoing its append of '/' and prevents adjusting its '%' logic to allow most directories with

Re: svn commit: r335836 - head/usr.bin/top

2018-07-03 Thread Jilles Tjoelker
ndle this usefully and securely, since so little is known about the encoding. The best handling may depend on the context. Therefore, in /bin/sh, I have only implemented multibyte support for UTF-8. All other encodings have bytes treated as characters. However, I do agree that getenv("LANG") is bad. Instead, setlocale() should be used. After that, nl_langinfo(CODESET) can be called and the result compared to "UTF-8". -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r335905 - head/usr.bin/rup

2018-07-03 Thread Jilles Tjoelker
Author: jilles Date: Tue Jul 3 19:09:46 2018 New Revision: 335905 URL: https://svnweb.freebsd.org/changeset/base/335905 Log: rup: Fix -Wcast-align warnings Fix possible strict aliasing issue (if time_t is the same size as int but not int but for example long) which also resulted in a

Re: svn commit: r335041 - head/lib/libc/stdlib

2018-06-13 Thread Jilles Tjoelker
ating bits. I don't think we should take advantage of this, though, since making atoi() faster than strtol() may encourage people to use atoi(). -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/

Re: svn commit: r334008 - head/bin/sh

2018-05-22 Thread Jilles Tjoelker
ites: > > > On Mon, 21 May 2018 21:52:48 + (UTC) > > > Jilles Tjoelker <jil...@freebsd.org> wrote: > > > > Author: jilles > > > > Date: Mon May 21 21:52:48 2018 > > > > New Revision: 334008 > > > > URL: https://svnweb.f

svn commit: r334008 - head/bin/sh

2018-05-21 Thread Jilles Tjoelker
Author: jilles Date: Mon May 21 21:52:48 2018 New Revision: 334008 URL: https://svnweb.freebsd.org/changeset/base/334008 Log: sh: Split CNL syntax category to avoid a check on state[level].syntax No functional change is intended. Modified: head/bin/sh/mksyntax.c head/bin/sh/parser.c

svn commit: r333927 - in head/bin/sh: . tests/expansion

2018-05-20 Thread Jilles Tjoelker
Author: jilles Date: Sun May 20 17:25:52 2018 New Revision: 333927 URL: https://svnweb.freebsd.org/changeset/base/333927 Log: sh: Allow unquoted newlines in word in ${param+word} etc. POSIX requires accepting unquoted newlines in word in parameter expansions like ${param+word},

svn commit: r333507 - head/bin/sh/tests/parser

2018-05-11 Thread Jilles Tjoelker
Author: jilles Date: Fri May 11 21:56:01 2018 New Revision: 333507 URL: https://svnweb.freebsd.org/changeset/base/333507 Log: sh: Test that backslash-newline within single-quotes is not special This works correctly, but the test may be helpful when modifying the parser. Added:

svn commit: r333224 - in stable/11/bin/sh: . tests/builtins

2018-05-03 Thread Jilles Tjoelker
Author: jilles Date: Thu May 3 19:47:25 2018 New Revision: 333224 URL: https://svnweb.freebsd.org/changeset/base/333224 Log: MFC r333092: sh: Don't have [ match any [[:class:]] Added: stable/11/bin/sh/tests/builtins/case23.0 - copied unchanged from r333092,

svn commit: r333092 - in head/bin/sh: . tests/builtins

2018-04-29 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 29 17:46:08 2018 New Revision: 333092 URL: https://svnweb.freebsd.org/changeset/base/333092 Log: sh: Don't have [ match any [[:class:]] Submitted by: Robert Elz MFC after:3 days Added: head/bin/sh/tests/builtins/case23.0 (contents, props changed)

svn commit: r331955 - head/share/man/man8

2018-04-03 Thread Jilles Tjoelker
Author: jilles Date: Tue Apr 3 21:44:43 2018 New Revision: 331955 URL: https://svnweb.freebsd.org/changeset/base/331955 Log: rc.subr.8: Improve documentation of ${name}_limits and ${name}_login_class Submitted by: 0mp Differential Revision:https://reviews.freebsd.org/D14928

svn commit: r328818 - head/bin/sh

2018-02-02 Thread Jilles Tjoelker
Author: jilles Date: Fri Feb 2 22:53:58 2018 New Revision: 328818 URL: https://svnweb.freebsd.org/changeset/base/328818 Log: sh: Refactor job status printing, preparing for -o pipefail and similar No functional change is intended. Modified: head/bin/sh/jobs.c Modified:

Re: svn commit: r328060 - head/usr.sbin/service

2018-01-16 Thread Jilles Tjoelker
y other option. This would also use one getopts loop and reconstruct a command line for the jailed service(8) based on the variables like ENABLED (the values for set options can be changed to simplify this since the rest of the script only cares about non-empty or not). -- Jilles Tjoelker __

svn commit: r327652 - stable/11/usr.sbin/nandtool

2018-01-06 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 6 22:59:10 2018 New Revision: 327652 URL: https://svnweb.freebsd.org/changeset/base/327652 Log: MFC r327211: nandtool: Add missing mode for open() with O_CREAT If O_CREAT is given, open() needs a mode argument. Follow the umask by passing 0666. Modified:

svn commit: r327565 - head/usr.bin/find/tests

2018-01-04 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 4 22:59:24 2018 New Revision: 327565 URL: https://svnweb.freebsd.org/changeset/base/327565 Log: find: Speed up tests by using touch -d instead of sleep for timestamps I have verified that the tests still detect the absence of the r327362 fix. Modified:

Re: svn commit: r325726 - head/sys/kern

2018-01-01 Thread Jilles Tjoelker
On Thu, Dec 28, 2017 at 05:25:25PM +0100, Jilles Tjoelker wrote: > On Thu, Dec 28, 2017 at 12:40:31PM +, Antoine Brodin wrote: > > On Sat, Nov 11, 2017 at 10:39 PM, Mateusz Guzik <m...@freebsd.org> wrote: > > > Author: mjg > > > Date: Sat Nov 11 22:39:3

svn commit: r327475 - head/bin/sh

2018-01-01 Thread Jilles Tjoelker
Author: jilles Date: Mon Jan 1 22:31:52 2018 New Revision: 327475 URL: https://svnweb.freebsd.org/changeset/base/327475 Log: sh: Move various structs from jobs.h to jobs.c These implementation details of jobs.c need not be exposed. Modified: head/bin/sh/jobs.c head/bin/sh/jobs.h

svn commit: r327440 - in head: etc/mtree usr.bin/find

2017-12-31 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 31 19:24:13 2017 New Revision: 327440 URL: https://svnweb.freebsd.org/changeset/base/327440 Log: find: Link tests to the build Modified: head/etc/mtree/BSD.tests.dist head/usr.bin/find/Makefile Modified: head/etc/mtree/BSD.tests.dist

Re: svn commit: r325726 - head/sys/kern

2017-12-28 Thread Jilles Tjoelker
id not return the expected string. On stable/10 and stable/11, the second line is a truncated version of the command line like ps -p 86963 -o args=00 A prerequisite for this reproducer is that kern.ps_arg_cache_limit is not set so high that

svn commit: r327212 - head/bin/sh

2017-12-26 Thread Jilles Tjoelker
Author: jilles Date: Tue Dec 26 16:23:18 2017 New Revision: 327212 URL: https://svnweb.freebsd.org/changeset/base/327212 Log: sh: Don't leak wait* implementation details from jobs.c Modified: head/bin/sh/eval.c head/bin/sh/jobs.c Modified: head/bin/sh/eval.c

svn commit: r327211 - head/usr.sbin/nandtool

2017-12-26 Thread Jilles Tjoelker
Author: jilles Date: Tue Dec 26 16:20:38 2017 New Revision: 327211 URL: https://svnweb.freebsd.org/changeset/base/327211 Log: nandtool: Add missing mode for open() with O_CREAT If O_CREAT is given, open() needs a mode argument. Follow the umask by passing 0666. Reviewed by: imp

svn commit: r327121 - head/bin/sh

2017-12-23 Thread Jilles Tjoelker
Author: jilles Date: Sat Dec 23 22:58:19 2017 New Revision: 327121 URL: https://svnweb.freebsd.org/changeset/base/327121 Log: sh(1): Markup and spelling fixes Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1 ==

svn commit: r326603 - head/contrib/mdocml

2017-12-05 Thread Jilles Tjoelker
Author: jilles Date: Tue Dec 5 23:06:15 2017 New Revision: 326603 URL: https://svnweb.freebsd.org/changeset/base/326603 Log: mdoc(7): Update .Dd for previous commit Modified: head/contrib/mdocml/mdoc.7 Modified: head/contrib/mdocml/mdoc.7

svn commit: r326601 - head/contrib/mdocml

2017-12-05 Thread Jilles Tjoelker
Author: jilles Date: Tue Dec 5 23:00:41 2017 New Revision: 326601 URL: https://svnweb.freebsd.org/changeset/base/326601 Log: mdocml: Add IEEE Std 1003.1-2008, 2016 edition Also document IEEE Std 1003.1-2008, 2013 edition in mdoc(7) (as well as the 2016 edition). Submitted by: Yuri

  1   2   3   4   5   6   7   8   9   10   >