in reply to Re: Re: Untainting 'bad' filenames
in thread Untainting 'bad' filenames

Sometimes I get around this by writing out a second file after the first is completely written. Then the process polls the directory looking for filename.whatever.done When the .done file shows up I know it's safe to move the file I actually want.

Reading some fresh posts it looks like you're grabbing files from a custom ftp server, so this really isn't a solution for your problem...