[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH f15-branch master] Handle nfsiso in promptForNfs as well (#678413).



> > +static int ends_with_iso(char *dirname, struct dirent *ent) {
> > +    char *suffix;
> > +
> > +    if (ent->d_type != DT_REG)
> > +        return 0;
> > +
> > +    suffix = rindex(ent->d_name, '.');
> > +    return (!strcmp(suffix, "iso"));
> 
> This should be ".iso", rindex points to the char being searched for.
> 
> The rest looks good to me.

Okay, this would need to be fixed in promptForHd as well.

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]