diff options
author | Russ Cox <rsc@swtch.com> | 2008-12-06 15:33:23 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-12-06 15:33:23 -0800 |
commit | c1b1466e95fc469f1de84e3d41e72ca2ef676e44 (patch) | |
tree | b7f478cb089b7f6afaf581fa6c2751e93c16bf1f /src/cmd/venti | |
parent | 52e34db194b46210035a263d96e19da107a5281a (diff) | |
download | plan9port-c1b1466e95fc469f1de84e3d41e72ca2ef676e44.tar.gz plan9port-c1b1466e95fc469f1de84e3d41e72ca2ef676e44.tar.bz2 plan9port-c1b1466e95fc469f1de84e3d41e72ca2ef676e44.zip |
venti: handle symlinks as disks
Diffstat (limited to 'src/cmd/venti')
-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); |