From 09b32a7289c917188156ce072c503344f83117cd Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 18 Dec 1995 18:35:46 +0000 Subject: entered into RCS --- libnetfs/dir-rmdir.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libnetfs/dir-rmdir.c') diff --git a/libnetfs/dir-rmdir.c b/libnetfs/dir-rmdir.c index e6eb0284..4f9e962a 100644 --- a/libnetfs/dir-rmdir.c +++ b/libnetfs/dir-rmdir.c @@ -26,6 +26,9 @@ netfs_S_dir_rmdir (struct protid *diruser, char *name) { error_t err; + if (!diruser) + return EOPNOTSUPP; + mutex_lock (&diruser->po->np->lock); err = netfs_attempt_rmdir (diruser->credential, diruser->po->np, name); mutex_unlock (&diruser->po->np->lock); -- cgit v1.2.3