Advertisement
Guest User

Untitled

a guest
Jun 10th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. diff --git a/src/client/Client.cc b/src/client/Client.cc
  2. index 4ae0e2b..bef55d2 100644
  3. --- a/src/client/Client.cc
  4. +++ b/src/client/Client.cc
  5. @@ -3382,7 +3382,11 @@ int Client::get_or_create(Inode *dir, const char* name,
  6. int Client::path_walk(const filepath& origpath, Inode **final, bool followsym)
  7. {
  8. filepath path = origpath;
  9. - Inode *cur = cwd;
  10. + Inode *cur;
  11. + if (origpath.absolute())
  12. + cur = root;
  13. + else
  14. + cur = cwd;
  15. assert(cur);
  16.  
  17. dout(10) << "path_walk " << path << dendl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement