Re: dseek()?

From: Adam Bozanich (abozan01_at_ccsf.edu)
Date: 05/31/03


Date: Fri, 30 May 2003 18:24:51 -0700


On Fri, 30 May 2003, Valentin Nechayev wrote:

> >>> Adam Bozanich wrote:
>
>
> Why don't you use telldir() and seekdir()?

  Because I didn't know about them ;) Thank you.

> AB> Where can I find a good solution for something like a dseek() function?

> AB> The book says to scan through the dir's and make sure that '.' isn't the same
> AB> as '..' What are some other tests I could do to look for 'bad' stuff?
>
> What does "the same" mean?
> -netch-

I was wondering that too. I really don't know much about coding/security, so I was hoping
someone could suggest some some things that I might want to look for that
would help me learn a little of both.

-Adam



Relevant Pages

  • Re: telldir()/seekdir() confusion
    ... > DN> I don't think there's any pstandard that says that telldir has to ... > after a successful seekdir() call was made. ... Maybe only free cookies when closediror rewinddir() is called, ...
    (freebsd-hackers)
  • Re: telldir()/seekdir() confusion
    ... DN>> seekdir(dirp, pos); ... DN> I don't think there's any pstandard that says that telldir has to ... "If the most recent operation on the directory stream was a seekdir(), ...
    (freebsd-hackers)
  • Re: looking for function
    ... > Look into closedir, close, opendir, readdir, rewinddir, seekdir, telldir ... > and scandir. ... None of the things you list are standard C. Please don't give out advice ...
    (alt.comp.lang.learn.c-cpp)
  • Re: dseek()?
    ... AB> int dseek(int offset, struct dirent *dirp) ... Why don't you use telldir() and seekdir()? ... If identical pointed object, this means root directory, not `bad stuff'. ...
    (comp.unix.programmer)