On Thu, Sep 22, 2016 at 7:56 PM, James Cowgill <jcowg...@debian.org> wrote:
> > Thinking about this some more, there is a slight race condition here if > the user deletes the file after the checks, but before it's written. I > think the best fix would break the smogrify API unfortunately. One > alternative is to use to use open(2)'s O_CREATE | O_EXCL flags, but this > will only work if the file does not exist beforehand. > Actually I just had a much simpler idea. Since we are only interested in getting the value, I can alter this function so that the value is written to stdout instead of to /tmp.
_______________________________________________ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers