Description: Convert ubuntu changes to a patch

--- a/src/read_config_lex.c
+++ b/src/read_config_lex.c
@@ -2173,7 +2173,8 @@ static int input (void );
 /* This used to be an fputs(), but since the string might contain NUL's,
  * we now use fwrite().
  */
-#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
+
+#define ECHO if (fwrite( yytext, yyleng, 1, yyout )) yy_fatal_error (strerror (errno));
 #endif
 
 /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
--- a/src/main.c
+++ b/src/main.c
@@ -400,7 +400,10 @@ int main(int argc, char *argv[])
 		exit(EXIT_FAILURE);
 	}
 
-	do_chdir("/");
+	if (chdir("/")<0) {
+		perror("chdir");
+		exit(EXIT_FAILURE);
+	}
 	close(STDIN_FILENO);
 
 	/* Daemonize conntrackd */
