venti: handle symlinks as disks
This commit is contained in:
parent
52e34db194
commit
c1b1466e95
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ initpart(char *name, int mode)
|
||||||
fprint(2, "warning: %s opened for reading only\n", name);
|
fprint(2, "warning: %s opened for reading only\n", name);
|
||||||
}
|
}
|
||||||
part->offset = lo;
|
part->offset = lo;
|
||||||
dir = dirstat(file); /* no dirfstat; need name to identify disk devices */
|
dir = dirfstat(part->fd);
|
||||||
if(dir == nil){
|
if(dir == nil){
|
||||||
freepart(part);
|
freepart(part);
|
||||||
seterr(EOk, "can't stat partition='%s': %r", file);
|
seterr(EOk, "can't stat partition='%s': %r", file);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue