Permalink
Browse files

Don't complain about not being able to read ignore files.

  • Loading branch information...
1 parent a84d877 commit fff69a7f78490a4c25b2431d8ed33df7d50aa336 @ggreer committed May 12, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 configure.ac
  2. +1 −1 src/ignore.c
  3. +1 −1 src/options.c
View
@@ -1,4 +1,4 @@
-AC_INIT([the_silver_searcher], [0.8], [https://github.com/ggreer/the_silver_searcher/issues], [the_silver_searcher], [https://github.com/ggreer/the_silver_searcher])
+AC_INIT([the_silver_searcher], [0.7.1], [https://github.com/ggreer/the_silver_searcher/issues], [the_silver_searcher], [https://github.com/ggreer/the_silver_searcher])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PREREQ([2.59])
View
@@ -76,7 +76,7 @@ void load_ignore_patterns(const char *ignore_filename) {
FILE *fp = NULL;
fp = fopen(ignore_filename, "r");
if (fp == NULL) {
- log_err("Skipping ignore file %s", ignore_filename);
+ log_debug("Skipping ignore file %s", ignore_filename);
return;
}
View
@@ -258,7 +258,7 @@ void parse_options(int argc, char **argv, char **paths[]) {
if (home_dir) {
log_debug("Found user's home dir: %s", home_dir);
- size_t path_length = (size_t)(strlen(home_dir) + 11); /* strlen("/.agignore") */
+ size_t path_length = (size_t)(strlen(home_dir) + strlen(ignore_pattern_files[0]));
ignore_file_path = malloc(path_length);
strlcpy(ignore_file_path, home_dir, path_length);
strlcat(ignore_file_path, "/", path_length);

0 comments on commit fff69a7

Please sign in to comment.