Commit | Line | Data |
---|---|---|
13e237a0 FF |
1 | Do not fail if "/" is not accessible - which it is not on Android starting |
2 | with Android 7.0. | |
3 | ||
4 | diff -u -r ../mlocate-0.26/src/locate.c ./src/locate.c | |
5 | --- ../mlocate-0.26/src/locate.c 2012-09-22 03:48:54.000000000 +0200 | |
6 | +++ ./src/locate.c 2017-09-22 20:57:44.062275402 +0200 | |
7 | @@ -1026,11 +1027,6 @@ | |
8 | uc_obstack_mark = obstack_alloc (&uc_obstack, 0); | |
9 | obstack_init (&check_stack_obstack); | |
10 | res = EXIT_FAILURE; | |
11 | - /* Don't call access ("/", R_OK | X_OK) all the time. This is too strict, | |
12 | - it is possible to have "/" --x and have a database describing a | |
13 | - subdirectory, but that is just too improbable. */ | |
14 | - if (conf_statistics == false && access ("/", R_OK | X_OK) != 0) | |
15 | - goto done; | |
16 | for (i = 0; i < conf_dbpath.len; i++) | |
17 | { | |
18 | if (conf_output_limit_set != false && matches_found >= conf_output_limit) |