projects
/
invirt/packages/python-routefs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
077ffad
)
Return ENOENT if a file doesn't exist for readlink.
author
Evan Broder
<broder@mit.edu>
Tue, 2 Sep 2008 00:23:00 +0000
(20:23 -0400)
committer
Evan Broder
<broder@mit.edu>
Tue, 2 Sep 2008 00:23:00 +0000
(20:23 -0400)
Reported by Anders Kaseorg <andersk@mit.edu>
routefs/__init__.py
patch
|
blob
|
history
diff --git
a/routefs/__init__.py
b/routefs/__init__.py
index
5f3b4c4
..
875345b
100644
(file)
--- a/
routefs/__init__.py
+++ b/
routefs/__init__.py
@@
-148,7
+148,9
@@
class RouteFS(fuse.Fuse):
If the path specified is a symlink, return the target
"""
obj = self._get_file(path)
- if type(obj) is not Symlink:
+ if obj is None:
+ return -errno.ENOENT
+ elif type(obj) is not Symlink:
return -errno.EINVAL
else:
return obj