My patch makes the socket executable when there is a client is attached to it. An irssi script called screen-away.pl can make use of this function.
The patch is made against dtach-0.8.
It appears that this patch will prevent anyone from using chmod on the socket;
the modes on the socket are never checked at all. The patch should try to get
the current mode of the socket and change the execute bit, rather than
assuming that the mode has not been changed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
make socket executable when there is an attached client
Ned,
what about this patch, do you plan to integrate it into dtach?
It appears that this patch will prevent anyone from using chmod on the socket;
the modes on the socket are never checked at all. The patch should try to get
the current mode of the socket and change the execute bit, rather than
assuming that the mode has not been changed.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
A fun fact: this patch is included in FreeBSD ports tree, and applied automatically to dtach builds.
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/142763
Ned,
Here is a new version of the patch which gets the current mode before setting the execute bit.