Changeset e285656 in mainline for uspace/srv/fs/exfat/exfat_dentry.c
- Timestamp:
- 2011-12-14T20:45:49Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0cfb05e
- Parents:
- d6d15ec (diff), 9916841 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_dentry.c
rd6d15ec re285656 101 101 bool exfat_valid_char(wchar_t ch) 102 102 { 103 /* TODO */ 104 return true; 103 switch (ch) { 104 case 0x01 ... 0x1F: 105 case '/': 106 case '\\': 107 case '?': 108 case '|': 109 case '>': 110 case '<': 111 case '"': 112 case '*': 113 case ':': 114 return false; 115 default: 116 return true; 117 } 105 118 } 106 119 107 120 bool exfat_valid_name(const char *name) 108 121 { 109 /* TODO */ 122 size_t off = 0; 123 wchar_t ch; 124 125 while ((ch = str_decode(name, &off, STR_NO_LIMIT)) != 0) { 126 if (!exfat_valid_char(ch)) 127 return false; 128 } 110 129 return true; 111 130 }
Note:
See TracChangeset
for help on using the changeset viewer.