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
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
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
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
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
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:
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
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,
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
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
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
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.
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)
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
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)
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
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
)
@@ -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
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
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
.
> >>> 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"
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
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
: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
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
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
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
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
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
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
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
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/
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/
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
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
_
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"
.
> >>> 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"
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
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
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
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:
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:
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
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
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
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"
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
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
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:
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
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
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
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
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
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
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
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:
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:
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:
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:
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
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
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:
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:
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
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?}
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
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
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
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
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
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
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
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,
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
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
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
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"
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
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/
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
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
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},
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:
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,
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)
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
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:
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
__
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:
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:
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
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
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
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
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
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
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
==
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
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 - 100 of 1758 matches
Mail list logo