1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Oops, nearly broke fcntl() again for sockets.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14902 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-03-25 08:59:22 +00:00
parent 590d1b8eec
commit 3eb15a612f

View File

@ -1,5 +1,5 @@
/*
* $Id: fcntl_fcntl.c,v 1.14 2005-03-25 08:50:59 obarthel Exp $
* $Id: fcntl_fcntl.c,v 1.15 2005-03-25 08:59:22 obarthel Exp $
*
* :ts=4
*
@ -146,7 +146,8 @@ fcntl(int file_descriptor, int cmd, ... /* int arg */ )
SHOWMSG("cmd=F_SETFL");
if(fd->fd_DefaultFile == ZERO)
/* If this is a file, make sure that we don't hit a zero file handle. */
if(FLAG_IS_CLEAR(fd->fd_Flags,FDF_IS_SOCKET) && fd->fd_DefaultFile == ZERO)
{
__set_errno(EBADF);
goto out;