w3cam (0.7.2-6) cgi.c

Summary

 cgi.c |    7 +++++++
 1 file changed, 7 insertions(+)

    
download this patch

Patch contents

--- w3cam-0.7.2.orig/cgi.c
+++ w3cam-0.7.2/cgi.c
@@ -27,6 +27,9 @@
 #include <sys/utsname.h>/* uname() */
 #include <time.h>		/* time() */
 #include "cgi.h"
+#ifdef DEBIAN
+#define DEFAULT_CFGFILE "/etc/w3cam.cgi.scf"
+#endif
 
 #define MAX_LINE	1024
 #define EMPTY		'\0'
@@ -561,6 +564,10 @@
 	strcpy (cfgfile, pname);
 	strcat (cfgfile, ".scf");
 	fp = fopen (cfgfile, "rb");
+#ifdef DEBIAN
+    if (!fp)
+        fp = fopen (DEFAULT_CFGFILE, "rb");
+#endif
 	if (!fp) {
 		return (0);
 	}