diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-18 18:35:46 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-18 18:35:46 +0000 |
commit | 09b32a7289c917188156ce072c503344f83117cd (patch) | |
tree | 163c36f97181741d955b1052e1ff4c141f2043c3 /libnetfs/dir-rmdir.c | |
parent | 966f51d2bf4c85a1112b03949b661ebcc7621732 (diff) |
entered into RCS
Diffstat (limited to 'libnetfs/dir-rmdir.c')
-rw-r--r-- | libnetfs/dir-rmdir.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |