| 1 | diff -u -r ../mlocate-0.26/src/updatedb.c ./src/updatedb.c |
| 2 | --- ../mlocate-0.26/src/updatedb.c 2012-03-23 19:00:48.000000000 +0100 |
| 3 | +++ ./src/updatedb.c 2014-07-02 03:23:18.000000000 +0200 |
| 4 | @@ -354,6 +354,9 @@ |
| 5 | static bool |
| 6 | filesystem_is_excluded (const char *path) |
| 7 | { |
| 8 | +#ifdef __ANDROID__ |
| 9 | + return false; |
| 10 | +#else |
| 11 | static char *type; /* = NULL; */ |
| 12 | static size_t type_size; /* = 0; */ |
| 13 | |
| 14 | @@ -415,6 +418,7 @@ |
| 15 | /* This is debuging output, don't mark anything for translation */ |
| 16 | fprintf (stderr, "...done\n"); |
| 17 | return res; |
| 18 | +#endif |
| 19 | } |
| 20 | |
| 21 | \f /* Filesystem scanning */ |
| 22 | @@ -1014,7 +1018,9 @@ |
| 23 | if (fwriteerror (new_db)) |
| 24 | error (EXIT_FAILURE, errno, _("I/O error while writing to `%s'"), |
| 25 | new_db_filename); |
| 26 | +#ifndef __ANDROID__ |
| 27 | new_db_setup_permissions (); |
| 28 | +#endif |
| 29 | if (rename (new_db_filename, conf_output) != 0) |
| 30 | error (EXIT_FAILURE, errno, _("error replacing `%s'"), conf_output); |
| 31 | /* There is really no race condition in removing other files now: unlink () |