Re: Remove sort files - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Remove sort files
Date
Msg-id Pine.LNX.4.30.0105241033360.757-100000@peter.localdomain
Whole thread Raw
In response to Re: Remove sort files  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Remove sort files
List pgsql-patches
Bruce Momjian writes:

> OK, I did the readdir() thing.  I hope it is safe to unlink a file while
> in a readdir() loop.

The only portable member of struct dirent is d_name.  (Do you really
expect non-regular files in the sort directory?)  Also, lots of error
checks (after opendir, readdir, mkdir, unlink) are missing.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Remove sort files
Next
From: Bruce Momjian
Date:
Subject: Re: Remove sort files