summary refs log tree commit diff
path: root/hurd/new-fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/new-fd.c')
-rw-r--r--hurd/new-fd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hurd/new-fd.c b/hurd/new-fd.c
index 37ba82e334..47cbbc086c 100644
--- a/hurd/new-fd.c
+++ b/hurd/new-fd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,6 +33,9 @@ _hurd_new_fd (io_t port, io_t ctty)
       /* Initialize the port cells.  */
       _hurd_port_init (&d->port, port);
       _hurd_port_init (&d->ctty, ctty);
+      
+      /* And the fcntl flags.  */
+      d->flags = 0;
     }
 
   return d;