mirror of
https://repo.or.cz/socat.git
synced 2025-07-27 13:02:57 +00:00
when UNIX-LISTEN was applied to an existing file it failed as expected but removed the file
This commit is contained in:
parent
4c3d1ca49d
commit
cb913fbc0c
4 changed files with 51 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
/* source: xio-listen.c */
|
||||
/* Copyright Gerhard Rieger 2001-2009 */
|
||||
/* Copyright Gerhard Rieger 2001-2010 */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* this file contains the source for listen socket options */
|
||||
|
@ -299,12 +299,6 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
|
|||
level = E_ERROR;
|
||||
#endif /* WITH_RETRY */
|
||||
|
||||
#if WITH_UNIX
|
||||
/* with UNIX sockets: only listening parent is allowed to remove
|
||||
the socket file */
|
||||
xfd->opt_unlink_close = false;
|
||||
#endif /* WITH_UNIX */
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue