svn commit: r320532 - in stable/10/usr.bin/compress: . tests

2017-07-01 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 1 13:03:02 2017 New Revision: 320532 URL: https://svnweb.freebsd.org/changeset/base/320532 Log: MFC r318592: compress: Allow uncompress -c with multiple pathnames, as required by POSIX. Per POSIX, allow passing multiple pathnames to uncompress -c,

svn commit: r320531 - in stable/10/bin/sh: . tests/builtins

2017-07-01 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 1 12:57:00 2017 New Revision: 320531 URL: https://svnweb.freebsd.org/changeset/base/320531 Log: MFC r317912: sh: Fix INTOFF leak after a builtin with different locale settings. After executing a builtin with different locale settings such as LC_ALL=C

svn commit: r320518 - in stable/10: etc/mtree usr.bin/compress usr.bin/compress/tests

2017-06-30 Thread Jilles Tjoelker
Author: jilles Date: Fri Jun 30 22:16:28 2017 New Revision: 320518 URL: https://svnweb.freebsd.org/changeset/base/320518 Log: MFC r318591: compress: Add basic tests. Added: stable/10/usr.bin/compress/tests/ - copied from r318591, head/usr.bin/compress/tests/ Modified:

svn commit: r320510 - in stable/10/bin/sh: . tests/expansion

2017-06-30 Thread Jilles Tjoelker
Author: jilles Date: Fri Jun 30 21:32:48 2017 New Revision: 320510 URL: https://svnweb.freebsd.org/changeset/base/320510 Log: MFC r315005: sh: Fix executing wrong command with ${x#$(y)}$(z). The parsed internal representation of words consists of a byte string with a list of nodes

svn commit: r316942 - in stable/10/bin/sh: . tests/expansion

2017-04-14 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 14 21:42:27 2017 New Revision: 316942 URL: https://svnweb.freebsd.org/changeset/base/316942 Log: MFC r314686: sh: Fix crash if a -T trap is taken during command substitution. Code like t=$(stat -f %m "$file") segfaulted if -T was active and a trap was taken

svn commit: r315179 - stable/10/bin/sh/tests/expansion

2017-03-12 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 12 19:49:08 2017 New Revision: 315179 URL: https://svnweb.freebsd.org/changeset/base/315179 Log: MFC r314637: sh: Add some already working tests that exercise new code paths Added: stable/10/bin/sh/tests/expansion/cmdsubst18.0 - copied unchanged from

svn commit: r313685 - in stable/10: lib/libc/sys share/man/man4

2017-02-12 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 12 18:52:01 2017 New Revision: 313685 URL: https://svnweb.freebsd.org/changeset/base/313685 Log: MFC r313174: Clean up documentation of AF_UNIX control messages. Document AF_UNIX control messages in unix(4) only, not split between unix(4) and recv(2).

svn commit: r313303 - in stable/10: sys/kern tests/sys/kern

2017-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 5 21:31:40 2017 New Revision: 313303 URL: https://svnweb.freebsd.org/changeset/base/313303 Log: MFC r310096: reaper: Make REAPER_KILL_SUBTREE actually work. Modified: stable/10/sys/kern/kern_procctl.c stable/10/tests/sys/kern/reaper.c Directory Properties:

svn commit: r313288 - stable/10/share/skel

2017-02-05 Thread Jilles Tjoelker
Author: jilles Date: Sun Feb 5 15:46:05 2017 New Revision: 313288 URL: https://svnweb.freebsd.org/changeset/base/313288 Log: MFC r312721: skel: Remove reference to deleted part in previous commit to this file. Modified: stable/10/share/skel/dot.shrc Directory Properties: stable/10/

svn commit: r312654 - stable/10/share/skel

2017-01-22 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 22 21:34:26 2017 New Revision: 312654 URL: https://svnweb.freebsd.org/changeset/base/312654 Log: MFC r312230: skel: Do not set -o emacs in .shrc. sh has defaulted to 'set -o emacs' since FreeBSD 9.0. Therefore, do not set this again in .shrc, since that only

svn commit: r310610 - stable/10/tests/sys/kern

2016-12-26 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 26 17:26:25 2016 New Revision: 310610 URL: https://svnweb.freebsd.org/changeset/base/310610 Log: MFC r309957: Add tests for reaper receiving SIGCHLD (r309886). PR: 213928 Modified: stable/10/tests/sys/kern/reaper.c Directory Properties:

svn commit: r310558 - stable/10/tests/sys/kern

2016-12-25 Thread Jilles Tjoelker
ewly added) +++ stable/10/tests/sys/kern/reaper.c Sun Dec 25 22:32:16 2016 (r310558, copy of r309836, head/tests/sys/kern/reaper.c) @@ -0,0 +1,494 @@ +/*- + * Copyright (c) 2016 Jilles Tjoelker + * All rights reserved. + * + * Redistribution and use in source and binary forms, with

svn commit: r309536 - stable/10/lib/libc/sys

2016-12-04 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 4 16:00:25 2016 New Revision: 309536 URL: https://svnweb.freebsd.org/changeset/base/309536 Log: MFC r309026: open(2): Clarify non-POSIX error when opening a symlink with O_NOFOLLOW. We return [EMLINK] instead of [ELOOP] when trying to open a symlink with

svn commit: r308886 - in stable/10: etc/rc.d sbin/swapon

2016-11-20 Thread Jilles Tjoelker
Author: jilles Date: Sun Nov 20 13:44:27 2016 New Revision: 308886 URL: https://svnweb.freebsd.org/changeset/base/308886 Log: MFC r307755: swapoff: Remove only late devices with -aL. Currently, '/etc/rc.d/swaplate stop' removes all swap devices. This can be very slow and may not even be

svn commit: r308866 - stable/10/sbin/swapon

2016-11-19 Thread Jilles Tjoelker
Author: jilles Date: Sat Nov 19 20:03:59 2016 New Revision: 308866 URL: https://svnweb.freebsd.org/changeset/base/308866 Log: MFC r306585: swapon(8): Update to reality: swapoff ignores -L and the late option in fstab. Modified: stable/10/sbin/swapon/swapon.8 Directory Properties:

svn commit: r307155 - stable/10/lib/libc/sys

2016-10-12 Thread Jilles Tjoelker
Author: jilles Date: Wed Oct 12 20:19:33 2016 New Revision: 307155 URL: https://svnweb.freebsd.org/changeset/base/307155 Log: MFC r305628: intro(2),_exit(2): Update for reaper (procctl(PROC_REAP_ACQUIRE)). Modified: stable/10/lib/libc/sys/_exit.2 stable/10/lib/libc/sys/intro.2 Directory

svn commit: r307065 - in stable/10: sys/kern tests/sys/kern

2016-10-11 Thread Jilles Tjoelker
=== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/10/tests/sys/kern/waitpid_nohang.c Tue Oct 11 18:51:03 2016 (r307065, copy of r305676, head/tests/sys/kern/waitpid_nohang.c) @@ -0,0 +1,70 @@ +/*- +

svn commit: r305569 - stable/10/lib/libc/gen

2016-09-07 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 7 21:09:44 2016 New Revision: 305569 URL: https://svnweb.freebsd.org/changeset/base/305569 Log: MFC r305154: directory(3): Deprecate readdir_r(). Clarify dirent buffers. In existing implementations including FreeBSD, there is no reason to use readdir_r() in

svn commit: r305568 - stable/10/lib/libc/gen

2016-09-07 Thread Jilles Tjoelker
Author: jilles Date: Wed Sep 7 21:04:39 2016 New Revision: 305568 URL: https://svnweb.freebsd.org/changeset/base/305568 Log: MFC r305090: getvfsbyname(3): Remove [EFAULT] error. Since r101651 in 2002, getvfsbyname() has written *vfc using userland memcpy(), so the [EFAULT] error no

svn commit: r302323 - stable/10/sys/kern

2016-07-03 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 3 11:45:54 2016 New Revision: 302323 URL: https://svnweb.freebsd.org/changeset/base/302323 Log: MFC r302151: posixshm: Fix lock leak when mac_posixshm_check_read rejects read. While reading the code, I noticed that shm_read() returns without unlocking

svn commit: r302011 - stable/10/share/man/man3

2016-06-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Jun 18 13:44:10 2016 New Revision: 302011 URL: https://svnweb.freebsd.org/changeset/base/302011 Log: MFC r301076: Fix typo ESRC -> ESRCH in pthread man pages. Modified: stable/10/share/man/man3/pthread_attr_get_np.3 stable/10/share/man/man3/pthread_resume_np.3

svn commit: r302010 - in stable/10: lib/libthr share/man/man3

2016-06-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Jun 18 13:42:33 2016 New Revision: 302010 URL: https://svnweb.freebsd.org/changeset/base/302010 Log: MFC r300970: Remove non-history libkse references and fix typo "PTHREAD_PROCESSES_PRIVATE". Modified: stable/10/lib/libthr/libthr.3

svn commit: r302009 - stable/10

2016-06-18 Thread Jilles Tjoelker
Author: jilles Date: Sat Jun 18 13:41:00 2016 New Revision: 302009 URL: https://svnweb.freebsd.org/changeset/base/302009 Log: Add mergeinfo missed in r300954. Modified: Directory Properties: stable/10/ (props changed) ___

svn commit: r300954 - stable/10/lib/libc/sys

2016-05-29 Thread Jilles Tjoelker
Author: jilles Date: Sun May 29 12:16:58 2016 New Revision: 300954 URL: https://svnweb.freebsd.org/changeset/base/300954 Log: MFC r300420: vfork(2): Mention some risks of calling vfork() from application code. Modified: stable/10/lib/libc/sys/vfork.2 Modified:

svn commit: r297783 - stable/10/usr.bin/touch

2016-04-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 10 15:24:07 2016 New Revision: 297783 URL: https://svnweb.freebsd.org/changeset/base/297783 Log: MFC r278817: touch: Fix some subtle bugs related to NULL times fallback: * Do not subvert vfs.timestamp_precision by reading the time and passing that to

svn commit: r297782 - in stable/10: bin/cp bin/mv usr.bin/touch

2016-04-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 10 15:02:29 2016 New Revision: 297782 URL: https://svnweb.freebsd.org/changeset/base/297782 Log: MFC r277645: cp,mv,touch: Set timestamps with nanosecond precision. This uses utimensat(). Modified: stable/10/bin/cp/utils.c stable/10/bin/mv/mv.c

svn commit: r297766 - stable/10/bin/test

2016-04-09 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 9 21:49:57 2016 New Revision: 297766 URL: https://svnweb.freebsd.org/changeset/base/297766 Log: MFC r258799: test: Simplify the code by unifying op_num and op_type. The global variable t_wp_op is no longer needed. Modified: stable/10/bin/test/test.c

svn commit: r297765 - stable/10/sys/kern

2016-04-09 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 9 21:04:51 2016 New Revision: 297765 URL: https://svnweb.freebsd.org/changeset/base/297765 Log: MFC r281086: utimensat: Correct Capsicum required capability rights. Modified: stable/10/sys/kern/vfs_syscalls.c Directory Properties: stable/10/ (props changed)

svn commit: r297759 - stable/10/lib/libc/sys

2016-04-09 Thread Jilles Tjoelker
Author: jilles Date: Sat Apr 9 19:29:39 2016 New Revision: 297759 URL: https://svnweb.freebsd.org/changeset/base/297759 Log: MFC r287753: setuid(2): Suggest O_CLOEXEC instead of fcntl(F_SETFD). Modified: stable/10/lib/libc/sys/setuid.2 Directory Properties: stable/10/ (props changed)

svn commit: r297719 - stable/10/lib/libc/sys

2016-04-08 Thread Jilles Tjoelker
Author: jilles Date: Fri Apr 8 15:43:49 2016 New Revision: 297719 URL: https://svnweb.freebsd.org/changeset/base/297719 Log: MFC r295384: semget(2): Add missing [EINVAL] conditions. PR: 206927 Modified: stable/10/lib/libc/sys/semget.2 Directory Properties: stable/10/

svn commit: r294963 - in stable/10: lib/libc/gen tools/regression/posixsem2

2016-01-27 Thread Jilles Tjoelker
Author: jilles Date: Wed Jan 27 22:56:04 2016 New Revision: 294963 URL: https://svnweb.freebsd.org/changeset/base/294963 Log: MFC r294565: sem: Don't free nameinfo that is still in list when open() fails. This bug could be reproduced easily by calling sem_open() with O_CREAT | O_EXCL

svn commit: r294532 - stable/10/lib/libc/sys

2016-01-21 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 21 21:16:57 2016 New Revision: 294532 URL: https://svnweb.freebsd.org/changeset/base/294532 Log: MFC r294234: utimensat(2): Correct description of [EINVAL] error. Modified: stable/10/lib/libc/sys/utimensat.2 Directory Properties: stable/10/ (props changed)

svn commit: r294099 - stable/10/lib/libc/sys

2016-01-15 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 15 20:55:44 2016 New Revision: 294099 URL: https://svnweb.freebsd.org/changeset/base/294099 Log: MFC r293783: futimens/utimensat: Use the new system calls. Update the __FreeBSD_version check in lib/libc/sys/futimens.c and lib/libc/sys/utimensat.c. Before

svn commit: r292841 - stable/10/etc/defaults

2015-12-28 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 28 21:35:06 2015 New Revision: 292841 URL: https://svnweb.freebsd.org/changeset/base/292841 Log: MFC r290515: periodic: Fix backwards compatibility for daily_status_security_* vars. Most daily_status_security_* variables in periodic.conf were changed to

svn commit: r292786 - stable/10/bin/sh

2015-12-27 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 27 17:53:39 2015 New Revision: 292786 URL: https://svnweb.freebsd.org/changeset/base/292786 Log: MFC r292517: sh/mknodes: Close files and check for errors when writing. This is a build tool only and does not affect run time. PR: 204951 Modified:

svn commit: r292776 - stable/10/lib/libc/sys

2015-12-27 Thread Jilles Tjoelker
Author: jilles Date: Sun Dec 27 15:30:13 2015 New Revision: 292776 URL: https://svnweb.freebsd.org/changeset/base/292776 Log: MFC r292513: clock_gettime(2),gettimeofday(2): Remove [EFAULT] error. Depending on system configuration and parameters, clock_gettime() and gettimeofday() may not

svn commit: r292450 - stable/10/etc

2015-12-18 Thread Jilles Tjoelker
Author: jilles Date: Fri Dec 18 19:58:34 2015 New Revision: 292450 URL: https://svnweb.freebsd.org/changeset/base/292450 Log: MFC r291770: rc.subr: Check for running daemons before a custom start_cmd is executed. Currently rc scripts implementing their own start_cmd do not enjoy the

svn commit: r290062 - stable/10/etc

2015-10-27 Thread Jilles Tjoelker
Author: jilles Date: Tue Oct 27 20:58:14 2015 New Revision: 290062 URL: https://svnweb.freebsd.org/changeset/base/290062 Log: MFC r286163: rc.subr: Allow rc.conf.d with multi-directory local_startup. I also changed ${...%*/rc.d} to ${...%/rc.d} since the shortest match always has an

svn commit: r289938 - in stable/10: bin/sh lib/libc/gen

2015-10-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 25 17:17:50 2015 New Revision: 289938 URL: https://svnweb.freebsd.org/changeset/base/289938 Log: MFC r288430: wordexp: Rewrite to make WRDE_NOCMD reliable. Shell syntax is too complicated to detect command substitution and unquoted operators reliably without

svn commit: r287751 - stable/10/bin/sh

2015-09-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 13 13:52:54 2015 New Revision: 287751 URL: https://svnweb.freebsd.org/changeset/base/287751 Log: MFC r278826,279330: sh: Various cleanups to expand.c: * Remove some gotos. * Remove unused parameter. * Remove duplicate code. This MFC is to avoid

svn commit: r287752 - in stable/10/bin/sh: . tests/builtins

2015-09-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 13 13:58:46 2015 New Revision: 287752 URL: https://svnweb.freebsd.org/changeset/base/287752 Log: MFC r287148: sh: Fix out of bounds read when there is no ] after a [:class:]. The initial check for a matching ] was incorrect if a ] may be consumed by a

svn commit: r287750 - stable/10/bin/sh

2015-09-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 13 13:43:08 2015 New Revision: 287750 URL: https://svnweb.freebsd.org/changeset/base/287750 Log: MFC r272575: sh: Eliminate some gotos. This MFC is to avoid conflicts in the MFC of r287148. Modified: stable/10/bin/sh/eval.c stable/10/bin/sh/expand.c

svn commit: r287755 - in stable/10/bin/sh/tests: expansion parameters parser

2015-09-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 13 14:24:12 2015 New Revision: 287755 URL: https://svnweb.freebsd.org/changeset/base/287755 Log: MFC r268436,273243,278806,280920,286971: sh: Add various tests. These new tests from head pass with unmodified stable/10 sh. Added:

svn commit: r287749 - in stable/10/bin/sh: . tests/errors

2015-09-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 13 13:31:51 2015 New Revision: 287749 URL: https://svnweb.freebsd.org/changeset/base/287749 Log: MFC r287081: sh: Don't create bad parse result when postponing a bad substitution error. An invalid substitution like ${var@} does not cause a parse error but is

svn commit: r287298 - stable/10/lib/libc/gen

2015-08-29 Thread Jilles Tjoelker
Author: jilles Date: Sat Aug 29 20:41:09 2015 New Revision: 287298 URL: https://svnweb.freebsd.org/changeset/base/287298 Log: MFC r279084,280713: setmode(): Use sysctl kern.proc.umask instead of umask() if possible. The kern.proc.umask.pid sysctl allows querying the umask without

svn commit: r287027 - stable/10/bin/mv

2015-08-22 Thread Jilles Tjoelker
Author: jilles Date: Sat Aug 22 21:35:35 2015 New Revision: 287027 URL: https://svnweb.freebsd.org/changeset/base/287027 Log: MFC r284916: mv: Improve message when moving two or more files to non-directory. The message text is from cp, which has had a nicer message for this since 2007

svn commit: r286534 - stable/10/lib/libc/gen

2015-08-09 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 9 15:53:02 2015 New Revision: 286534 URL: https://svnweb.freebsd.org/changeset/base/286534 Log: MFC r284649: fts_children: preserve errno after running close/fchdir PR: 200942 Submitted by: Conrad Meyer Modified: stable/10/lib/libc/gen/fts.c

svn commit: r281743 - stable/10/lib/libc/gen

2015-04-19 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 19 13:51:25 2015 New Revision: 281743 URL: https://svnweb.freebsd.org/changeset/base/281743 Log: MFC r280919: wordexp: Explicitly pass along IFS. Per Austin group issue #884, sh should not import IFS from the environment but always set it to $' \t\n'. For

svn commit: r281742 - stable/10/tools/regression/lib/libc/gen

2015-04-19 Thread Jilles Tjoelker
Author: jilles Date: Sun Apr 19 13:46:13 2015 New Revision: 281742 URL: https://svnweb.freebsd.org/changeset/base/281742 Log: MFC r280830: wordexp(): Add testcase for non-default IFS in environment. The non-default IFS is expected to be used. Modified:

svn commit: r280002 - stable/10/tools/regression/usr.bin/env

2015-03-14 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 14 20:40:04 2015 New Revision: 280002 URL: https://svnweb.freebsd.org/changeset/base/280002 Log: MFC r279722: env: Fix testsuite for additional variables set by sh. Modified: stable/10/tools/regression/usr.bin/env/regress-env.rgdata Directory Properties:

svn commit: r279866 - stable/10/bin/ln

2015-03-10 Thread Jilles Tjoelker
Author: jilles Date: Tue Mar 10 22:23:56 2015 New Revision: 279866 URL: https://svnweb.freebsd.org/changeset/base/279866 Log: MFC r278848: symlink(7): Mention chflagsat() (can take AT_SYMLINK_NOFOLLOW). Modified: stable/10/bin/ln/symlink.7 Directory Properties: stable/10/ (props changed)