Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3002 → Rev 3001

/trunk/uspace/lib/libfs/libfs.c
155,7 → 155,7
if (ops->plb_get_char(next) == '/')
next++; /* eat slash */
while (next <= last && ops->has_children(cur)) {
while (ops->has_children(cur) && next <= last) {
/* collect the component */
len = 0;
while ((ops->plb_get_char(next) != '/') && (next <= last)) {
197,10 → 197,8
index);
if (nodep) {
if (!ops->link(cur, nodep, component)) {
if (lflag & L_CREATE) {
(void)ops->destroy(
nodep);
}
if (lflag & L_CREATE)
(void)ops->destroy(nodep);
ipc_answer_0(rid, ENOSPC);
} else {
ipc_answer_5(rid, EOK,
234,7 → 232,7
}
 
/* handle miss: excessive components */
if (next <= last && !ops->has_children(cur)) {
if (!ops->has_children(cur) && next <= last) {
if (lflag & (L_CREATE | L_LINK)) {
if (!ops->is_directory(cur)) {
ipc_answer_0(rid, ENOTDIR);