summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/io-async-icky.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdiskfs/io-async-icky.c b/libdiskfs/io-async-icky.c
index 93ef8f50..22cb3abb 100644
--- a/libdiskfs/io-async-icky.c
+++ b/libdiskfs/io-async-icky.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -24,6 +24,9 @@ diskfs_S_io_get_icky_async_id (struct protid *cred,
mach_port_t *idport,
mach_msg_type_name_t *idport_type)
{
+ if (!cred)
+ return EOPNOTSUPP;
+
*idport = MACH_PORT_NULL;
*idport_type = MACH_MSG_TYPE_COPY_SEND;
return 0;