Branch: Tag:

2016-03-21

2016-03-21 10:09:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem: Use encoded paths for file locks.

Fixes some of [bug 7659 (#7659)].

479:    "<h1>Permission to 'LOCK' files denied</h1>",    id);    } -  register_lock(path, lock, id); +  register_lock(encode_path(path), lock, id);    return 0;   }   
494:    "<h1>Permission to 'UNLOCK' files denied</h1>",    id);    } -  unregister_lock(path, lock, id); +  unregister_lock(encode_path(path), lock, id);    return 0;   }   
524:    id->method), id);    }    TRACE_LEAVE("Fall back to the default write access checks."); -  return ::write_access(path, recursive, id); +  return ::write_access(encode_path(path), recursive, id);   }      array find_dir( string f, RequestID id )