From ca51c73a5b4f644a8a940fcc187a9dbb3e1b1f78 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 28 Jan 1999 16:37:59 +0000 Subject: 1999-01-28 Roland McGrath * io.c (trivfs_S_file_syncfs): Fix inverted test. Reported by OKUJI Yoshinori . --- storeio/io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'storeio') diff --git a/storeio/io.c b/storeio/io.c index 45b534c0..f3a6a732 100644 --- a/storeio/io.c +++ b/storeio/io.c @@ -1,6 +1,6 @@ /* The hurd io interface to storeio - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -177,7 +177,7 @@ trivfs_S_file_set_size (struct trivfs_protid *cred, /* These four routines modify the O_APPEND, O_ASYNC, O_FSYNC, and O_NONBLOCK bits for the IO object. In addition, io_get_openmodes will tell you which of O_READ, O_WRITE, and O_EXEC the object can - be used for. The O_ASYNC bit affects icky async I/O; good async + be used for. The O_ASYNC bit affects icky async I/O; good async I/O is done through io_async which is orthogonal to these calls. */ error_t @@ -286,7 +286,7 @@ trivfs_S_file_syncfs (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, int wait, int dochildren) { - if (! cred) + if (cred) return dev_sync (((struct open *)cred->po->hook)->dev, wait); else return EOPNOTSUPP; @@ -336,5 +336,5 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred, offsets, num_offsets, data, data_len); return err; - } + } } -- cgit v1.2.3