View | Details | Raw Unified
Collapse All | Expand All

(-) slocate-3.1/src/cmds.c (-2 / +5 lines)
 Lines 129-134    Link Here 
	       "   --output=<file>    - Specifies the database to create.\n"
	       "   --output=<file>    - Specifies the database to create.\n"
	       "   -d <path>\n"
	       "   -d <path>\n"
	       "   --database=<path>  - Specfies the path of databases to search in.\n"
	       "   --database=<path>  - Specfies the path of databases to search in.\n"
	       "   -0                 - Delimit results with \\0 rather than \\n\n"
	       "   -h\n"
	       "   -h\n"
	       "   --help             - Display this help.\n"
	       "   --help             - Display this help.\n"
	       "   -v\n"
	       "   -v\n"
 Lines 707-713    Link Here 
	if (strcmp(g_data->progname, "updatedb") == 0)
	if (strcmp(g_data->progname, "updatedb") == 0)
	    cmd_data->updatedb = TRUE;
	    cmd_data->updatedb = TRUE;
	while ((ch = getopt(argc,argv,"VvuhqU:r:o:e:l:d:-:n:f:c:i")) != EOF) {
	while ((ch = getopt(argc,argv,"VvuhqU:r:o:e:l:d:-:n:f:c:i0")) != EOF) {
		switch(ch) {
		switch(ch) {
			/* Help */
			/* Help */
		 case 'h':
		 case 'h':
 Lines 823-828    Link Here 
				goto EXIT;
				goto EXIT;
			}
			}
			break;
			break;
		case '0':
			g_data->delim = '\0';
			break;
		 default:
		 default:
			break;
			break;
		}
		}
 Lines 871-874    Link Here 
	return NULL;
	return NULL;
}
}
(-) slocate-3.1/src/slocate.c (-3 / +3 lines)
 Lines 164-169    Link Here 
	g_data->regexp_data = NULL;
	g_data->regexp_data = NULL;
	g_data->queries = -1;
	g_data->queries = -1;
	g_data->SLOCATE_GID = get_gid(g_data, DB_GROUP, &ret);
	g_data->SLOCATE_GID = get_gid(g_data, DB_GROUP, &ret);
	g_data->delim = '\n';
	if (!ret)
	if (!ret)
	    goto EXIT;	
	    goto EXIT;	
 Lines 191-197    Link Here 
		    goto EXIT;
		    goto EXIT;
	}
	}
	if (g_data->VERBOSE)
	if (g_data->VERBOSE)
	    fprintf(stdout, "%s\n", path);       
		fprintf(stdout, "%s%c", path,  g_data->delim);       
	/* Match number string */
	/* Match number string */
	ptr1 = path;
	ptr1 = path;
	code_len = 0;
	code_len = 0;
 Lines 471-477    Link Here 
	if (match_ret == 1) {
	if (match_ret == 1) {
		if (g_data->queries > 0)
		if (g_data->queries > 0)
		    g_data->queries -= 1;
		    g_data->queries -= 1;
		fprintf(stdout, "%s\n", full_path);
		fprintf(stdout, "%s%c", full_path, g_data->delim);
	}
	}
	ret = 1;
	ret = 1;
EXIT:
EXIT:
 Lines 736-742    Link Here 
		ret = 0;
		ret = 0;
		goto EXIT;
		goto EXIT;
	}	
	}	
#if 0
#if 0
	printf("Q: %d\n", g_data->QUIET);
	printf("Q: %d\n", g_data->QUIET);
	printf("V: %d\n", g_data->VERBOSE);
	printf("V: %d\n", g_data->VERBOSE);
(-) slocate-3.1/src/slocate.h (+1 lines)
 Lines 81-86    Link Here 
	char **input_db;
	char **input_db;
	int queries;
	int queries;
	struct regexp_data_s *regexp_data;
	struct regexp_data_s *regexp_data;
	char delim;
};
};
/* Encoding data */
/* Encoding data */