Menu

#1 make socket executable when there is an attached client

open
dtach (2)
5
2015-02-11
2008-04-25
Kodest
No

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.

Discussion

  • Kodest

    Kodest - 2008-04-25

    make socket executable when there is an attached client

     
  • bede

    bede - 2010-01-28

    Ned,

    what about this patch, do you plan to integrate it into dtach?

     
  • Ned T. Crigler

    Ned T. Crigler - 2010-01-30

    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.

     
  • Andrew Helsley

    Andrew Helsley - 2015-02-11

    Ned,

    Here is a new version of the patch which gets the current mode before setting the execute bit.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.