diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-06-29 08:00:50 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-06-29 08:00:50 +0000 |
commit | 45e9b9e5b132ab0571210a671695d1d8dcc5f882 (patch) | |
tree | a94a87c101fb0717d761f4142bda542cafc1cf76 /libdiskfs/dir-rmdir.c | |
parent | 544489db142ed9e4f80848777dbab78d0952b4e9 (diff) | |
download | hurd-45e9b9e5b132ab0571210a671695d1d8dcc5f882.tar.gz hurd-45e9b9e5b132ab0571210a671695d1d8dcc5f882.tar.bz2 hurd-45e9b9e5b132ab0571210a671695d1d8dcc5f882.zip |
1999-06-29 Thomas Bushnell, BSG <tb@mit.edu>
* lookup.c (diskfs_lookup): If we get an error from
fshelp_checkdirmod, clear *NP as well as returning the error.
Use diskfs_nrele instead of diskfs_nput in case *NP and DP are
the same.
1999-06-28 Thomas Bushnell, BSG <tb@mit.edu>
* dir-rmdir.c (diskfs_S_dir_rmdir): Reorganized to make clearer;
several little buglets fixed too.
Diffstat (limited to 'libdiskfs/dir-rmdir.c')
-rw-r--r-- | libdiskfs/dir-rmdir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdiskfs/dir-rmdir.c b/libdiskfs/dir-rmdir.c index 314e4e0a..637c00f4 100644 --- a/libdiskfs/dir-rmdir.c +++ b/libdiskfs/dir-rmdir.c @@ -42,6 +42,9 @@ diskfs_S_dir_rmdir (struct protid *dircred, if (error == EAGAIN) error = ENOTEMPTY; + if (error) + goto out; + /* Attempt to rmdir(".") */ if (dnp == np) { |