summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
077ffad)
Reported by Anders Kaseorg <andersk@mit.edu>
If the path specified is a symlink, return the target
"""
obj = self._get_file(path)
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
return -errno.EINVAL
else:
return obj