Changeset f6b6b40 in mainline for uspace/srv/vfs/vfs_lookup.c
- Timestamp:
- 2017-03-18T14:30:41Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c725619
- Parents:
- 4f9ab1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_lookup.c
r4f9ab1e rf6b6b40 141 141 } 142 142 143 static char *_strrchr(char *path, int c)144 {145 char *res = NULL;146 while (*path != 0) {147 if (*path == c) {148 res = path;149 }150 path++;151 }152 return res;153 }154 155 143 int vfs_link_internal(vfs_node_t *base, char *path, vfs_triplet_t *child) 156 144 { … … 175 163 vfs_triplet_t *triplet; 176 164 177 char *slash = _strrchr(path,'/');165 char *slash = str_rchr(path, L'/'); 178 166 if (slash && slash != path) { 179 167 if (slash[1] == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.