summaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-08-15 22:59:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-08-15 22:59:59 +0000
commit76cb110245eb7c55eb7c01226f0d2c3a9bed645f (patch)
tree186d1c26a49f9e50e60486ef31d1e76f68f1de83 /nuttx/fs
parent6c510b8a838ab27c348c2f5bac97211cbfaad3d6 (diff)
downloadpx4-nuttx-76cb110245eb7c55eb7c01226f0d2c3a9bed645f.tar.gz
px4-nuttx-76cb110245eb7c55eb7c01226f0d2c3a9bed645f.tar.bz2
px4-nuttx-76cb110245eb7c55eb7c01226f0d2c3a9bed645f.zip
Continued THTTPD debug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2023 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/fs_stat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/fs/fs_stat.c b/nuttx/fs/fs_stat.c
index 2f236264f..5923a04f1 100644
--- a/nuttx/fs/fs_stat.c
+++ b/nuttx/fs/fs_stat.c
@@ -89,11 +89,13 @@ static inline int statpsuedo(FAR struct inode *inode, FAR struct stat *buf)
}
else
{
- /* If it has no operations, then it must just be a intermeidate
+ /* If it has no operations, then it must just be a intermediate
* node in the inode tree. It is something like a directory.
+ * We'll say that all psuedo-directories are read-able but not
+ * write-able.
*/
- buf->st_mode |= S_IFDIR;
+ buf->st_mode |= S_IFDIR|S_IROTH|S_IRGRP|S_IRUSR;
}
return OK;
@@ -108,7 +110,7 @@ static inline int statroot(FAR struct stat *buf)
/* There is no inode associated with the fake root directory */
memset(buf, 0, sizeof(struct stat) );
- buf->st_mode = S_IFDIR;
+ buf->st_mode = S_IFDIR|S_IROTH|S_IRGRP|S_IRUSR;
return OK;
}