diff options
author | Miles Bader <miles@gnu.org> | 1997-03-01 02:28:59 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-03-01 02:28:59 +0000 |
commit | 22d806d9220dff95bd0e243e1e30dbc80a18a4a1 (patch) | |
tree | 4785f68e706ed1e8472771e07ac9f50c1f5b3480 | |
parent | f3e131e24c0eca288970cb39b1bccbb647292b72 (diff) |
(fsck_cleanup):
Correctly remove from fscks chain.
-rw-r--r-- | sutils/fsck.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sutils/fsck.c b/sutils/fsck.c index abcc3fc9..a79be9bd 100644 --- a/sutils/fsck.c +++ b/sutils/fsck.c @@ -274,7 +274,10 @@ fsck_cleanup (struct fsck *fsck, int remount, int make_writable) error_t err = 0; struct fs *fs = fsck->fs; - *fsck->self = fsck->next; /* Remove from chain. */ + /* Remove from chain. */ + *fsck->self = fsck->next; + if (fsck->next) + fsck->next->self = fsck->self; fs_debug (fs, "Cleaning up after fsck (remount = %d, make_writable = %d)", remount, make_writable); |