working -u -l -c

This commit is contained in:
elvis
2022-04-30 00:37:59 +02:00
parent 6bf73e8d18
commit 85231d073f
6 changed files with 11 additions and 10 deletions

View File

@ -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;
}