$NetBSD: patch-ai,v 1.1 2005/10/05 11:45:46 salo Exp $ Fix for SA17008, from Gentoo. --- ../convert/eyuvtoppm.c.orig 1995-04-14 23:16:52.000000000 +0200 +++ ../convert/eyuvtoppm.c 2005-10-05 13:16:27.000000000 +0200 @@ -99,13 +99,9 @@ fpointer = fopen(dest, "w"); if (fpointer == NULL) { fprintf(stderr, "Problems opening %s!\n", dest); - fprintf(stderr, "Trying /tmp/foobar instead\n"); - strcpy(dest, "/tmp/foobar"); - fpointer = fopen(dest, "w"); - if (fpointer == NULL) { - fprintf(stderr, "Nope, exiting.\n"); + perror(""); exit(1); - }} + } WritePPM(fpointer); fclose(fpointer);