Page MenuHomeFreeBSD
Feed Advanced Search

Nov 21 2015

jilles accepted D4156: Check for running daemons before a custom start_cmd is executed.
Nov 21 2015, 2:37 PM

Nov 19 2015

jilles accepted D4126: popen requires check for fdopen failure.
Nov 19 2015, 11:01 PM

Nov 18 2015

jilles committed rS291025: sh: Fix ""$@, which should not use the special case for "$@"..
sh: Fix ""$@, which should not use the special case for "$@".
Nov 18 2015, 9:09 PM

Nov 7 2015

jilles committed rS290515: periodic: Fix backwards compatibility for daily_status_security_* vars..
periodic: Fix backwards compatibility for daily_status_security_* vars.
Nov 7 2015, 10:06 PM

Nov 6 2015

jilles committed rS290453: I still maintain sh(1)..
I still maintain sh(1).
Nov 6 2015, 4:43 PM

Nov 3 2015

jilles added a comment to D3654: Avoid EINTR when debugging..
In D3654#85162, @kib wrote:

Yes, the restart problem is there. So, do you agree with having something along this lines (with or without the handling of timeout spent time) ?

Nov 3 2015, 11:23 PM

Nov 1 2015

jilles committed rS290244: sh: Avoid copying argv for simple commands..
sh: Avoid copying argv for simple commands.
Nov 1 2015, 10:07 PM

Oct 31 2015

jilles added a comment to D3654: Avoid EINTR when debugging..

Downside of this is that timeouts of the affected calls (kqueue/select/poll/nanosleep) are reset after a debug interrupt. If debug interrupts occur more often than the timeout, the calls will never time out. This is probably less harmful than the current [EINTR] but still a bug.

Oct 31 2015, 9:37 PM

Oct 27 2015

jilles committed rS290065: libedit: Use correct buffer lengths in vi mode v command..
libedit: Use correct buffer lengths in vi mode v command.
Oct 27 2015, 9:16 PM
jilles committed rS290062: MFC r286163: rc.subr: Allow rc.conf.d with multi-directory local_startup..
MFC r286163: rc.subr: Allow rc.conf.d with multi-directory local_startup.
Oct 27 2015, 8:58 PM

Oct 25 2015

jilles committed rS289943: MFC r288309: fnmatch(): Remove exponential behaviour as in sh r229201..
MFC r288309: fnmatch(): Remove exponential behaviour as in sh r229201.
Oct 25 2015, 9:39 PM
jilles committed rS289938: MFC r288430: wordexp: Rewrite to make WRDE_NOCMD reliable..
MFC r288430: wordexp: Rewrite to make WRDE_NOCMD reliable.
Oct 25 2015, 5:18 PM

Oct 22 2015

jilles accepted D3887: resolver: abuse _res a little less.
Oct 22 2015, 11:52 PM

Oct 18 2015

jilles requested changes to D3887: resolver: abuse _res a little less.

Reading the code, this looks OK, but in compilation an undesirable side effect can be seen. This is on amd64 with 11-current's default clang. The improvements to res_init() cause it to fall below a threshold and be inlined everywhere, leading to a 15% code size increase rather than the expected decrease (in the "text" column of size(1)).

Oct 18 2015, 2:42 PM

Oct 11 2015

jilles committed rS289159: sh: Make struct arglist an array instead of a linked list..
sh: Make struct arglist an array instead of a linked list.
Oct 11 2015, 9:33 PM

Sep 30 2015

jilles abandoned D3614: wordexp: Rework to make WRDE_NOCMD reliable..

Committed to head as SVN r288430 with the change to the man page. Thanks Warren Block for the review.

Sep 30 2015, 9:35 PM
jilles committed rS288430: wordexp: Rewrite to make WRDE_NOCMD reliable..
wordexp: Rewrite to make WRDE_NOCMD reliable.
Sep 30 2015, 9:32 PM

Sep 27 2015

jilles committed rS288309: fnmatch(): Remove exponential behaviour as in sh r229201..
fnmatch(): Remove exponential behaviour as in sh r229201.
Sep 27 2015, 12:52 PM

Sep 19 2015

jilles committed rS287996: libc: Consistently call _ioctl() internally, not ioctl()..
libc: Consistently call _ioctl() internally, not ioctl().
Sep 19 2015, 8:27 PM

Sep 16 2015

jilles added inline comments to D3614: wordexp: Rework to make WRDE_NOCMD reliable..
Sep 16 2015, 8:18 PM

Sep 13 2015

jilles committed rS287761: db/recno: Open with close-on-exec like btree and hash do..
db/recno: Open with close-on-exec like btree and hash do.
Sep 13 2015, 5:18 PM
jilles committed rS287755: MFC r268436,273243,278806,280920,286971: sh: Add various tests..
MFC r268436,273243,278806,280920,286971: sh: Add various tests.
Sep 13 2015, 2:24 PM
jilles committed rS287753: setuid(2): Suggest O_CLOEXEC instead of fcntl(F_SETFD)..
setuid(2): Suggest O_CLOEXEC instead of fcntl(F_SETFD).
Sep 13 2015, 2:01 PM
jilles committed rS287752: MFC r287148: sh: Fix out of bounds read when there is no ] after a [:class:]..
MFC r287148: sh: Fix out of bounds read when there is no ] after a [:class:].
Sep 13 2015, 1:59 PM
jilles committed rS287751: MFC r278826,279330: sh: Various cleanups to expand.c:.
MFC r278826,279330: sh: Various cleanups to expand.c:
Sep 13 2015, 1:53 PM
jilles committed rS287750: MFC r272575: sh: Eliminate some gotos..
MFC r272575: sh: Eliminate some gotos.
Sep 13 2015, 1:43 PM
jilles committed rS287749: MFC r287081: sh: Don't create bad parse result when postponing a bad.
MFC r287081: sh: Don't create bad parse result when postponing a bad
Sep 13 2015, 1:32 PM

Sep 12 2015

jilles updated the diff for D3614: wordexp: Rework to make WRDE_NOCMD reliable..

Fix bug in arglist handling.

Sep 12 2015, 4:29 PM

Sep 10 2015

jilles retitled D3614: wordexp: Rework to make WRDE_NOCMD reliable. from wordexp: Rewrite to make WRDE_NOCMD reliable. to wordexp: Rework to make WRDE_NOCMD reliable..
Sep 10 2015, 8:44 PM

Sep 9 2015

jilles retitled D3614: wordexp: Rework to make WRDE_NOCMD reliable. from to wordexp: Rewrite to make WRDE_NOCMD reliable..
Sep 9 2015, 9:14 PM

Sep 2 2015

jilles committed rS287408: sh: Allow empty << EOF markers..
sh: Allow empty << EOF markers.
Sep 2 2015, 7:50 PM

Aug 30 2015

jilles accepted D3533: Fix posix_spawn attributes test and add it to the build.
Aug 30 2015, 9:10 PM
jilles accepted D3533: Fix posix_spawn attributes test and add it to the build.

Looks OK apart from minor style issues.

Aug 30 2015, 8:49 PM
jilles committed rS287308: sh: Fix read with escaped IFS characters at the end..
sh: Fix read with escaped IFS characters at the end.
Aug 30 2015, 5:24 PM

Aug 29 2015

jilles committed rS287298: MFC r279084,280713: setmode(): Use sysctl kern.proc.umask instead of umask().
MFC r279084,280713: setmode(): Use sysctl kern.proc.umask instead of umask()
Aug 29 2015, 8:41 PM
jilles committed rS287296: sh: Add set -o nolog..
sh: Add set -o nolog.
Aug 29 2015, 7:42 PM

Aug 28 2015

jilles committed rS287266: MFC r286344: find: Fix segfault with very long path in -exec/-ok ... {} \;..
MFC r286344: find: Fix segfault with very long path in -exec/-ok ... {} \;.
Aug 28 2015, 8:53 PM

Aug 25 2015

jilles committed rS287148: sh: Fix out of bounds read when there is no ] after a [:class:]..
sh: Fix out of bounds read when there is no ] after a [:class:].
Aug 25 2015, 9:55 PM

Aug 23 2015

jilles committed rS287081: sh: Don't create bad parse result when postponing a bad substitution error..
sh: Don't create bad parse result when postponing a bad substitution error.
Aug 23 2015, 8:45 PM

Aug 22 2015

jilles committed rS287027: MFC r284916: mv: Improve message when moving two or more files to.
MFC r284916: mv: Improve message when moving two or more files to
Aug 22 2015, 9:35 PM

Aug 20 2015

jilles committed rS286973: sh: Avoid negative character values from $'\Uffffffff' etc..
sh: Avoid negative character values from $'\Uffffffff' etc.
Aug 20 2015, 10:06 PM
jilles committed rS286971: sh: Add test for $'\u' without any digits..
sh: Add test for $'\u' without any digits.
Aug 20 2015, 9:31 PM
jilles added inline comments to D3433: getrlimit.2: Document RSS, AS/VMEM limit behavior more clearly.
Aug 20 2015, 9:11 PM
jilles added inline comments to D3433: getrlimit.2: Document RSS, AS/VMEM limit behavior more clearly.
Aug 20 2015, 6:29 PM

Aug 19 2015

jilles added inline comments to D3433: getrlimit.2: Document RSS, AS/VMEM limit behavior more clearly.
Aug 19 2015, 9:45 PM
jilles committed rS286941: wordexp(): Improve some error codes..
wordexp(): Improve some error codes.
Aug 19 2015, 8:31 PM
jilles requested changes to D3433: getrlimit.2: Document RSS, AS/VMEM limit behavior more clearly.
Aug 19 2015, 7:17 PM

Aug 18 2015

jilles committed rS286903: wordexp(3): Update man page for no longer using the wordexp builtin..
wordexp(3): Update man page for no longer using the wordexp builtin.
Aug 18 2015, 8:13 PM

Aug 16 2015

jilles committed rS286830: wordexp(): Stop using the undocumented wordexp builtin..
wordexp(): Stop using the undocumented wordexp builtin.
Aug 16 2015, 7:42 PM
jilles added a comment to D3043: _FORTIFY_SOURCE support.
In D3043#68914, @kib wrote:

The diff is enormous and it pollutes a lot of unrelated places. E.g. the loader Makefiles changes or the forced undef fortify in libc/strings/stdio, as I understand, to avoid recursion.

Can the pollution be minimized somehow ? Can the patch be split into digestable pieces ?

Aug 16 2015, 6:20 PM · fortify source
jilles added inline comments to D3043: _FORTIFY_SOURCE support.
Aug 16 2015, 6:16 PM · fortify source
jilles committed rS286826: sh: Backslash-newline should not affect field splitting in read builtin..
sh: Backslash-newline should not affect field splitting in read builtin.
Aug 16 2015, 12:57 PM

Aug 15 2015

jilles committed rS286813: MFC r284779: sh: Fix some arithmetic undefined behaviour..
MFC r284779: sh: Fix some arithmetic undefined behaviour.
Aug 15 2015, 7:58 PM

Aug 14 2015

jilles committed rS286788: sh: When setting option via long name, don't go via letter..
sh: When setting option via long name, don't go via letter.
Aug 14 2015, 9:44 PM

Aug 11 2015

jilles committed rS286649: Fix and re-enable UTF-8 tests..
Fix and re-enable UTF-8 tests.
Aug 11 2015, 9:59 PM

Aug 9 2015

jilles committed rS286534: MFC r284649: fts_children: preserve errno after running close/fchdir.
MFC r284649: fts_children: preserve errno after running close/fchdir
Aug 9 2015, 3:53 PM

Aug 8 2015

jilles added inline comments to D3342: Unicode collation support.
Aug 8 2015, 11:28 PM

Aug 5 2015

jilles committed rS286344: find: Fix segfault with very long path in -exec/-ok ... {} \;..
find: Fix segfault with very long path in -exec/-ok ... {} \;.
Aug 5 2015, 9:33 PM

Aug 2 2015

jilles added a comment to D2172: Implement native eventfd system call..

kmacy has been working on bringing over the notify(3) APIs from Darwin[1], which appear to provide a superset of this functionality. It would be worth comparing the two and seeing what can be shared between the two. Ideally, the file descriptor returned by notify_register_file_descriptor would be of the same kind as that returned by eventfd and, outside of the Linuxulator (where it needs to be a system call for binary compat), we might be able to implement the eventfd stuff entirely in libc using the same system calls as notify(3).

[1] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/notify.3.html

Aug 2 2015, 1:54 PM

Aug 1 2015

jilles committed rS286163: rc.subr: Allow rc.conf.d with multi-directory local_startup..
rc.subr: Allow rc.conf.d with multi-directory local_startup.
Aug 1 2015, 10:00 PM

Jul 11 2015

jilles committed rS285385: sh(1): libedit has supported multibyte encodings for a while..
sh(1): libedit has supported multibyte encodings for a while.
Jul 11 2015, 1:07 PM

Jul 5 2015

jilles added inline comments to D2924: Fix up the startup/shutdown etc/rc.d/* scripting for random(4).
Jul 5 2015, 4:16 PM

Jun 28 2015

jilles added inline comments to D2924: Fix up the startup/shutdown etc/rc.d/* scripting for random(4).
Jun 28 2015, 10:15 PM
jilles committed rS284916: mv: Improve message when moving two or more files to non-directory..
mv: Improve message when moving two or more files to non-directory.
Jun 28 2015, 9:36 PM
jilles added inline comments to D2924: Fix up the startup/shutdown etc/rc.d/* scripting for random(4).
Jun 28 2015, 8:31 PM

Jun 24 2015

jilles committed rS284779: sh: Fix some arithmetic undefined behaviour..
sh: Fix some arithmetic undefined behaviour.
Jun 24 2015, 8:51 PM

Jun 20 2015

jilles closed D2852: Fix bug 200942 - Don't squash fts_children errors.

Committed to head.

Jun 20 2015, 10:17 PM
jilles committed rS284649: fts_children: preserve errno after running close/fchdir.
fts_children: preserve errno after running close/fchdir
Jun 20 2015, 8:54 PM
jilles accepted D2852: Fix bug 200942 - Don't squash fts_children errors.

Looks good to me.

Jun 20 2015, 10:20 AM

Jun 19 2015

jilles requested changes to D2852: Fix bug 200942 - Don't squash fts_children errors.
Jun 19 2015, 10:08 PM

Jun 6 2015

jilles committed rS284001: strchr(3): Mdoc fixes..
strchr(3): Mdoc fixes.
Jun 6 2015, 10:52 PM

May 31 2015

jilles added a comment to D2697: fdclose.

The code looks good to me.

May 31 2015, 10:06 PM

May 14 2015

jilles committed rS282917: MFC r282482: cp: Remove fts sorting..
MFC r282482: cp: Remove fts sorting.
May 14 2015, 7:32 PM
jilles committed rS282890: MFC r282482: cp: Remove fts sorting..
MFC r282482: cp: Remove fts sorting.
May 14 2015, 10:46 AM

May 10 2015

jilles committed rS282738: MFC r282041: hexdump: Don't use uninitialized struct stat..
MFC r282041: hexdump: Don't use uninitialized struct stat.
May 10 2015, 9:26 PM
jilles committed rS282729: recv(),send(): Directly call interposing entry instead of going through PLT..
recv(),send(): Directly call interposing entry instead of going through PLT.
May 10 2015, 2:50 PM

May 5 2015

jilles added a comment to D2445: ZFS: Allow setting file creation time.

The concept of allowing to set creation time looks good to me.

May 5 2015, 8:28 PM
jilles committed rS282482: cp: Remove fts sorting..
cp: Remove fts sorting.
May 5 2015, 1:23 PM

May 3 2015

jilles added a comment to D2410: fix (hack) readdir and seekdir to allow samba to correctly delete files.

Is _fixtelldir() actually needed? I noticed a bug in it, and if loc_loc == 0, there doesn't seem harm in lseek() + getdirentries().

May 3 2015, 2:48 PM

Apr 27 2015

jilles added inline comments to D2178: bin/sed: Implement long options for sed, add optional -Ii arguments.
Apr 27 2015, 9:48 PM

Apr 26 2015

jilles committed rS282041: hexdump: Don't use uninitialized struct stat..
hexdump: Don't use uninitialized struct stat.
Apr 26 2015, 9:35 PM

Apr 25 2015

jilles committed rS281988: libarchive: Allow setting nanosecond timestamps..
libarchive: Allow setting nanosecond timestamps.
Apr 25 2015, 9:25 PM
jilles committed rS281982: sh: Pass along SIGINT from a child if job control is enabled, even when not.
sh: Pass along SIGINT from a child if job control is enabled, even when not
Apr 25 2015, 1:34 PM

Apr 24 2015

jilles accepted D2316: Standardise chmod, chflags and chown option processing.

Looks good to me.

Apr 24 2015, 9:03 PM

Apr 23 2015

jilles requested changes to D2316: Standardise chmod, chflags and chown option processing.

I have some small remarks that apply to all three but I only wrote them in chflags.

Apr 23 2015, 9:53 PM

Apr 18 2015

jilles added a comment to D2325: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n n n'..

By the way, a workaround for the script is:

trap ' exit' INT
Apr 18 2015, 9:23 PM
jilles accepted D2325: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n n n'..

Looks good to me.

Apr 18 2015, 8:21 PM
jilles added a comment to D2316: Standardise chmod, chflags and chown option processing.
In D2316#17, @smh wrote:
In D2316#14, @jilles wrote:

If you're changing this, please make the interaction between -h and -R more sensible, as specified by symlink(7) and POSIX (though in the latter case not for chmod and chflags)
In that interpretation, it is never necessary to specify -h with -R; instead, -P implies -h, and -H implies -h for those files listed on the command line (not found in the tree walk).

Thanks for looking at this, I'm a little confused by your statement about "-H implies -h" as it seems to contradict symlink(7) specifically:
"The -H flag causes symbolic links specified on the command line to be dereferenced both for the purposes of the action to be performed and the tree walk, and it is as if the user had specified the name of the file to which the symbolic link pointed."

How I interpret that is that -H disables -h behaviour for the files specified on the command line only as they should already be dereferenced.

Apr 18 2015, 7:32 PM

Apr 17 2015

jilles requested changes to D2316: Standardise chmod, chflags and chown option processing.

If you're changing this, please make the interaction between -h and -R more sensible, as specified by symlink(7) and POSIX (though in the latter case not for chmod and chflags). In that interpretation, it is never necessary to specify -h with -R; instead, -P implies -h, and -H implies -h for those files listed on the command line (not found in the tree walk). This may not be a fully compatible change, but it fixes confusing behaviour that commands like "chown -R u:g tree" leave symlinks alone.

Apr 17 2015, 10:03 PM
jilles requested changes to D2178: bin/sed: Implement long options for sed, add optional -Ii arguments.

The man page and the usage message still contain optional arguments for -i and -I.

Apr 17 2015, 4:19 PM

Apr 4 2015

jilles added inline comments to D2172: Implement native eventfd system call..
Apr 4 2015, 9:08 PM

Apr 3 2015

jilles added a comment to D2172: Implement native eventfd system call..

I've reviewed the patch as if it's accepted to add this to the native API. I think it is possible to split the patch and first add the new fd type and kern_eventfd.c for the Linuxulator's use without committing to a new native API. This is definitely a required feature for the Linuxulator soon, if not now.

Apr 3 2015, 9:10 PM

Mar 29 2015

jilles added a comment to D2172: Implement native eventfd system call..

This is not really a lot of code, but I'm not sure it should be added as a fixed part of the native API, since it does not do much that is not already possible using pipe() or kqueue().

Mar 29 2015, 9:24 PM

Mar 24 2015

jilles added a comment to D2130: Unmout devfs when killing a jail..

This may work better as a "command", i.e. IP_* thing. For one, unmounting parts of the jail and then running a stop command inside the jail is not a good idea. The code already has a concept of dependencies between commands and that should be taken advantage of.

Mar 24 2015, 9:32 PM

Mar 14 2015

jilles closed D2020: restore: Preserve timestamps to the nanosecond.

Closed by commit rS279986 (authored by @jilles).

Mar 14 2015, 1:45 PM

Mar 11 2015

jilles added a comment to D2020: restore: Preserve timestamps to the nanosecond.
In D2020#3, @jhb wrote:

Looks fine to me.

Mar 11 2015, 10:17 PM

Mar 6 2015

jilles retitled D2020: restore: Preserve timestamps to the nanosecond from to restore: Preserve timestamps to the nanosecond.
Mar 6 2015, 11:02 PM

Feb 5 2015

jilles accepted D1716: Fix two clang 3.6.0 warnings in usr.sbin/syslogd.

Looks good to me.

Feb 5 2015, 10:12 PM

Feb 4 2015

jilles added a comment to D1768: /bin/sh can, with its non-blocking I/O on stdout, get an EAGAIN during a write, leading to spurious build errors.

Can you find out which file is returning [EAGAIN] while writing, and who is setting it non-blocking temporarily? It is also possible that a kernel bug causes [EAGAIN] on a write even though non-blocking mode is off.

Feb 4 2015, 11:20 PM

Feb 1 2015

jilles added a comment to D1748: Update D1727, removing the casts altogether.

I think getting rid of the cast is a win regardless of -Wcast-qual.

Feb 1 2015, 10:12 PM