New commands -projid, -get_projid, -get_projid_r, -set_projid, -set_projid_r, -find test -has_projid, -find actions get_projid, set_projid, get_projid_minmax

This commit is contained in:
2024-11-03 20:04:54 +01:00
parent 923bfa0be9
commit 32bfa95973
25 changed files with 1168 additions and 214 deletions

View File

@ -372,20 +372,26 @@ int Findjob_new(struct FindjoB **o, char *start_path, int flag)
m->text_2= NULL; /* a mere pointer, not managed memory */
m->user= 0;
m->group= 0;
m->mode_and= ~0;
m->mode_or= 0;
m->type= 0;
m->date= 0;
m->start_path= strdup(start_path);
if(m->start_path==NULL)
goto failed;
m->found_path= NULL;
m->estim_upper_size= 0;
m->estim_lower_size= 0;
m->subjob= NULL;
m->last_data_file_block= 0;
m->lfa_flags= 0;
m->projid_low= -1;
m->projid_high= -1;
m->errmsg[0]= 0;
m->errn= 0;
m->match_count= 0;
m->depth= 0;
m->start_path= strdup(start_path);
if(m->start_path==NULL)
goto failed;
ret= Exprnode_new(&(m->test_tree), m, NULL, "-find", (m->use_shortcuts)<<1);
if(ret<=0)
goto failed;