working -u -l -c
This commit is contained in:
@ -682,8 +682,8 @@ int removeFileFromQueue(queueT *q, char *filepath, int owner) {
|
||||
goto _end_remove_file_queue;
|
||||
}
|
||||
|
||||
if ((tmp->data)->open != 0 || ((tmp->data)->O_LOCK && (tmp->data)->owner != owner)) {
|
||||
// if file è aperto o la lock non è del owner
|
||||
if (((tmp->data)->O_LOCK) && ((tmp->data)->owner != owner)) {
|
||||
// if lock non è del owner
|
||||
errno = EPERM;
|
||||
goto _end_remove_file_queue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user