svn commit: r241352 - stable/8/usr.bin/find
Jilles Tjoelker
jilles at FreeBSD.org
Mon Oct 8 16:00:34 UTC 2012
Author: jilles
Date: Mon Oct 8 16:00:33 2012
New Revision: 241352
URL: http://svn.freebsd.org/changeset/base/241352
Log:
MFC r240973: find: Do not pass fd to save current directory to child
processes.
This removes one of the two wrongly passed file descriptors. The other one
appears to be from fts(3).
Modified:
stable/8/usr.bin/find/main.c
Directory Properties:
stable/8/usr.bin/find/ (props changed)
Modified: stable/8/usr.bin/find/main.c
==============================================================================
--- stable/8/usr.bin/find/main.c Mon Oct 8 14:08:13 2012 (r241351)
+++ stable/8/usr.bin/find/main.c Mon Oct 8 16:00:33 2012 (r241352)
@@ -154,7 +154,7 @@ main(int argc, char *argv[])
usage();
*p = NULL;
- if ((dotfd = open(".", O_RDONLY, 0)) < 0)
+ if ((dotfd = open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
err(1, ".");
exit(find_execute(find_formplan(argv), start));
More information about the svn-src-all
mailing list