mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
unvac: correct handling of named prefixes (Mathieu Lonjaret)
This commit is contained in:
parent
c8d681e850
commit
b5a2d4dae7
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ wantfile(char *name)
|
|||
n = strlen(want[i]);
|
||||
if(n < namelen && name[n] == '/' && memcmp(name, want[i], n) == 0)
|
||||
return 1;
|
||||
if(namelen < n && want[i][namelen] == '/' && memcmp(want[i], name, n) == 0)
|
||||
if(namelen < n && want[i][namelen] == '/' && memcmp(want[i], name, namelen) == 0)
|
||||
return 1;
|
||||
if(n == namelen && memcmp(name, want[i], n) == 0){
|
||||
found[i] = 1;
|
||||
|
|
Loading…
Reference in a new issue