summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/file.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 38ae3cb912..27588f3597 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -54,6 +54,13 @@ int open(char* pathname, int flags)
54 char* name; 54 char* name;
55 int namelen; 55 int namelen;
56 56
57 /* For now, we don't support writing */
58 if(flags & (O_WRONLY | O_RDWR))
59 {
60 errno = EROFS;
61 return -1;
62 }
63
57 if ( pathname[0] != '/' ) { 64 if ( pathname[0] != '/' ) {
58 DEBUGF("'%s' is not an absolute path.\n",pathname); 65 DEBUGF("'%s' is not an absolute path.\n",pathname);
59 DEBUGF("Only absolute pathnames supported at the moment\n"); 66 DEBUGF("Only absolute pathnames supported at the moment\n");