Changeset 92f9baca in mainline
- Timestamp:
- 2008-05-25T19:49:29Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa832eb
- Parents:
- 64b67c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.c
r64b67c3 r92f9baca 156 156 next++; /* eat slash */ 157 157 158 while ( ops->has_children(cur) && next <= last) {158 while (next <= last && ops->has_children(cur)) { 159 159 /* collect the component */ 160 160 len = 0; … … 198 198 if (nodep) { 199 199 if (!ops->link(cur, nodep, component)) { 200 if (lflag & L_CREATE) 201 (void)ops->destroy(nodep); 200 if (lflag & L_CREATE) { 201 (void)ops->destroy( 202 nodep); 203 } 202 204 ipc_answer_0(rid, ENOSPC); 203 205 } else { … … 233 235 234 236 /* handle miss: excessive components */ 235 if ( !ops->has_children(cur) && next <= last) {237 if (next <= last && !ops->has_children(cur)) { 236 238 if (lflag & (L_CREATE | L_LINK)) { 237 239 if (!ops->is_directory(cur)) {
Note:
See TracChangeset
for help on using the changeset viewer.