Comment 15 for bug 220434

Revision history for this message
Sebastien Bacher (seb128) wrote :

confirmed the issue is a samba one, gvfs error log

"map_errno_from_nt_status: 32 bit codes: code=c0000121
smbc errno NT_STATUS_CANNOT_DELETE -> 22"

the samba source has
#define NT_STATUS_CANNOT_DELETE NT_STATUS(0xC0000000 | 0x0121)

the errmap_unix.c table doesn't list that error

" DEBUG(10,("map_errno_from_nt_status: 32 bit codes: code=%08x\n",
                NT_STATUS_V(status)));

        for (i=0;nt_errno_map[i].error;i++) {
                if (NT_STATUS_V(nt_errno_map[i].status) ==
                            NT_STATUS_V(status)) {
                        return nt_errno_map[i].error;
                }
        }

        /* for all other cases - a default code */
        return EINVAL;"

it returns EINVAL