18861N/A- if ((head_ptr = strchr(head_ptr,' '))) {
18861N/A+ if ((head_ptr = strchr(head_ptr,'\t'))) {
18861N/A- head_ptr = strchr(head_ptr,' ');
18861N/A+ head_ptr = strchr(head_ptr,'\t');
18861N/A- tail_ptr = strchr(head_ptr,' ');
18861N/A+ tail_ptr = strchr(head_ptr,'\t');
18861N/A /* go backwards a bit so that we can get the
18861N/A * mount point of the filesystem */
18861N/A- while (*head_ptr != ' ' && head_ptr != fbuf)
18861N/A+ while (*head_ptr != '\t' && head_ptr != fbuf)
18861N/A- if (!(tail_ptr = strchr(head_ptr,' '))) {
18861N/A+ if (!(tail_ptr = strchr(head_ptr,'\t'))) {
18861N/A report_error(g_data, FATAL, "parse_fs_exclude: File System Exclude: (2) corrupt mtab file: %s\n", MTAB_FILE);
18861N/A if (strcmp(g_data->progname, "updatedb") == 0)
18861N/A- while ((ch = getopt(argc,argv,"VvuhqU:r:o:e:l:d:-:n:f:c:i")) != EOF) {
18861N/A+ while ((ch = getopt(argc,argv,":VvuhqU:r:o:e:l:d:-:n:f:c:i")) != EOF) {
18861N/A+ tmp_optarg = argv[optind-1] + 2;
18861N/A+ dash_ret = parse_dash(g_data, tmp_optarg);
18861N/A int parse_fs_exclude(struct g_data_s *g_data, char *data_str);
18861N/A int parse_exclude(struct g_data_s *g_data, char *estr);
18861N/A+char *strndup ( const char *s, size_t n);
18861N/A char * get_next_char(char ch, char *ptr)
18861N/A while (*ptr && *ptr != ch && *ptr != '\n')
18861N/A+char *strndup ( const char *s, size_t n)
18861N/A if (!encode(g_data, fd, file->fts_path, &enc_data))
18861N/A+ fts_set(NULL, file, FTS_SKIP);
18861N/A /* Printable version of WARN_SECONDS. */
18861N/A /* More fitting paths for FreeBSD -matt */
18861N/A+char* strcasestr( char *, char *);
18861N/A /* Duplicate string and make all characters lowercase */
18861N/A char * tolower_strdup(char *str)
18861N/A- foundit = (strcasestr(search_str, search_str) != NULL);
18861N/A+ if (strcasestr(full_path, search_str) != NULL)
18861N/A+char *strcasestr(char *a, char *b) {
18861N/A+ snprintf(f, sizeof(f), "%c%c", tolower(*b), toupper(*b));
18861N/A+ for (l = strcspn(a, f); l != strlen(a); l += strcspn(a + l + 1, f) + 1)
18861N/A+ if (strncasecmp(a + l, b, strlen(b)) == 0)