Module Name:    src
Committed By:   kre
Date:           Sat Apr 22 16:02:39 UTC 2017

Modified Files:
        src/bin/sh: main.c redir.c redir.h

Log Message:
Keep track of the biggest fd used by, or available to, the user/script
and use that to control which fd's are examined by a (bare) fdflags
(with no fd args).

Usually this will mean that fdflags will no longer show the shell's
internal use fds, only user fds.

This is only a partial fix however, a user can easily discover the
shell's fd usage (eg: using fstat) and can then still use fdflags to
manipulate those fds (or even send output to them).

The shell needs to monitor its own fd usage better, and keep out of
the way of user fds - coming sometime later...


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/bin/sh/main.c
cvs rdiff -u -r1.52 -r1.53 src/bin/sh/redir.c
cvs rdiff -u -r1.21 -r1.22 src/bin/sh/redir.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to