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:
01caa60
)
Use the mode specified by the various representation classes
author
Evan Broder
<broder@mit.edu>
Tue, 12 Aug 2008 07:21:50 +0000
(
00:21
-0700)
committer
Evan Broder
<broder@mit.edu>
Tue, 12 Aug 2008 07:21:50 +0000
(
00:21
-0700)
routefs/__init__.py
patch
|
blob
|
history
diff --git
a/routefs/__init__.py
b/routefs/__init__.py
index
5af78a5
..
9e2c6cc
100644
(file)
--- a/
routefs/__init__.py
+++ b/
routefs/__init__.py
@@
-113,14
+113,14
@@
class RouteFS(fuse.Fuse):
st = RouteStat()
if type(obj) is Directory:
- st.st_mode = stat.S_IFDIR | 0755
+ st.st_mode = stat.S_IFDIR | obj.mode
st.st_nlink = 2
elif type(obj) is Symlink:
- st.st_mode = stat.S_IFLNK | 0777
+ st.st_mode = stat.S_IFLNK | obj.mode
st.st_nlink = 1
st.st_size = len(obj)
else:
- st.st_mode = stat.S_IFREG | 0444
+ st.st_mode = stat.S_IFREG | obj.mode
st.st_nlink = 1
st.st_size = len(obj)