aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-12-06 15:33:23 -0800
committerRuss Cox <rsc@swtch.com>2008-12-06 15:33:23 -0800
commitc1b1466e95fc469f1de84e3d41e72ca2ef676e44 (patch)
treeb7f478cb089b7f6afaf581fa6c2751e93c16bf1f /src/cmd/venti
parent52e34db194b46210035a263d96e19da107a5281a (diff)
downloadplan9port-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.c2
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);