diff options
author | aiju <aiju@phicode.de> | 2012-08-08 00:52:37 +0200 |
---|---|---|
committer | aiju <aiju@phicode.de> | 2012-08-08 00:52:37 +0200 |
commit | f2c70fe2f708446794af299b1130b7aaf8dc73e5 (patch) | |
tree | 4bec923d87ce8ec064b6303f7494c0d9b1f5c64a /sys/src/cmd/hjfs/dump.c | |
parent | 34bf0ce496a36746a4f6746f8a187dd66fe7a136 (diff) |
more hjfs fixes
Diffstat (limited to 'sys/src/cmd/hjfs/dump.c')
-rw-r--r-- | sys/src/cmd/hjfs/dump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/hjfs/dump.c b/sys/src/cmd/hjfs/dump.c index 06c6e2418..1136172aa 100644 --- a/sys/src/cmd/hjfs/dump.c +++ b/sys/src/cmd/hjfs/dump.c @@ -115,6 +115,8 @@ again: runlock(fs); wlock(fs); } + if(l->next != nil && willmodify(fs, l->next, 1) < 0) + goto err; rc = chref(fs, l->blk, 0); if(rc < 0) goto err; @@ -125,8 +127,7 @@ again: } if(rc == 1) goto done; - if(willmodify(fs, l->next, 1) < 0) - goto err; + p = getbuf(fs->d, l->next->blk, TDENTRY, 0); if(p == nil) goto err; |