Subversion Repositories HelenOS

Rev

Rev 2733 | Rev 2736 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2733 Rev 2735
Line 328... Line 328...
328
        return;
328
        return;
329
    }
329
    }
330
 
330
 
331
    /* handle hit */
331
    /* handle hit */
332
    if (lflag & L_DESTROY) {
332
    if (lflag & L_DESTROY) {
-
 
333
        unsigned old_lnkcnt = TMPFS_GET_LNKCNT(dcur);
333
        int res = destroy_component(dcur);
334
        int res = destroy_component(dcur);
334
        unsigned lnkcnt = (res == EOK) ? 0 : TMPFS_GET_LNKCNT(dcur);
-
 
335
        ipc_answer_5(rid, (ipcarg_t)res, tmpfs_reg.fs_handle,
335
        ipc_answer_5(rid, (ipcarg_t)res, tmpfs_reg.fs_handle,
336
            dev_handle, dcur->index, dcur->size, lnkcnt);
336
            dev_handle, dcur->index, dcur->size, old_lnkcnt);
337
        return;
337
        return;
338
    }
338
    }
339
    if ((lflag & (L_CREATE | L_EXCLUSIVE)) == (L_CREATE | L_EXCLUSIVE)) {
339
    if ((lflag & (L_CREATE | L_EXCLUSIVE)) == (L_CREATE | L_EXCLUSIVE)) {
340
        ipc_answer_0(rid, EEXIST);
340
        ipc_answer_0(rid, EEXIST);
341
        return;
341
        return;