diff options
-rw-r--r-- | src/cmd/venti/srv/part.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/venti/srv/part.c b/src/cmd/venti/srv/part.c index db0a3e44..2c52b59b 100644 --- a/src/cmd/venti/srv/part.c +++ b/src/cmd/venti/srv/part.c @@ -132,7 +132,7 @@ initpart(char *name, int mode) fprint(2, "warning: %s opened for reading only\n", name); } part->offset = lo; - dir = dirstat(file); /* no dirfstat; need name to identify disk devices */ + dir = dirfstat(part->fd); if(dir == nil){ freepart(part); seterr(EOk, "can't stat partition='%s': %r", file); |