-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
for(int i=0;i<10;i++){
int count=snprintf(my_contfile, STRING_SIZE,"%s/%d.%d",contdir,pid,i);
int cf;
if(count==0 || count==STRING_SIZE) {
kano_log_error("kano-launcher: string too long making container file [%s]\n",contdir);
}
cf=open(my_contfile,S_IWUSR | S_IRUSR | S_IXUSR);
if(cf){
made_contfile=1;
close(cf);
break;
}
}From kano-launcher.c Line 216-228
Looks like the line cf=open(my_contfile,S_IWUSR | S_IRUSR | S_IXUSR); has problem
- should the O_CREAT | O_EXCL be provided?
- should check if (cf > 0), instead of if(cf) ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels