projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deb: compat 5
[idzebra-moved-to-github.git]
/
index
/
update_path.c
diff --git
a/index/update_path.c
b/index/update_path.c
index
6e4585c
..
8f787b3
100644
(file)
--- a/
index/update_path.c
+++ b/
index/update_path.c
@@
-1,5
+1,5
@@
/* This file is part of the Zebra server.
/* This file is part of the Zebra server.
- Copyright (C) 1994-2011 Index Data
+ Copyright (C) 2004-2013 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-52,7
+52,7
@@
static void repositoryExtractR(ZebraHandle zh, char *rep, int level,
rep[rep_len] = '/';
else
--rep_len;
rep[rep_len] = '/';
else
--rep_len;
-
+
for (i=0; e[i].name; i++)
{
char *ecp;
for (i=0; e[i].name; i++)
{
char *ecp;
@@
-87,19
+87,19
@@
void repositoryShow(ZebraHandle zh, const char *path)
yaz_log(YLOG_FATAL, "dict_open fail of %s", FMATCH_DICT);
return;
}
yaz_log(YLOG_FATAL, "dict_open fail of %s", FMATCH_DICT);
return;
}
-
+
strncpy(src, path, sizeof(src)-1);
src[sizeof(src)-1]='\0';
src_len = strlen(src);
strncpy(src, path, sizeof(src)-1);
src[sizeof(src)-1]='\0';
src_len = strlen(src);
-
+
if (src_len && src[src_len-1] != '/')
{
src[src_len] = '/';
src[++src_len] = '\0';
}
if (src_len && src[src_len-1] != '/')
{
src[src_len] = '/';
src[++src_len] = '\0';
}
-
+
di = dirs_open(dict, src, zh->m_flag_rw);
di = dirs_open(dict, src, zh->m_flag_rw);
-
+
while ((dst = dirs_read(di)))
yaz_log(YLOG_LOG, "%s", dst->path);
dirs_free(&di);
while ((dst = dirs_read(di)))
yaz_log(YLOG_LOG, "%s", dst->path);
dirs_free(&di);
@@
-140,13
+140,13
@@
static void repositoryExtract(ZebraHandle zh,
}
}
-ZEBRA_RES zebra_update_from_path(ZebraHandle zh, const char *path,
+ZEBRA_RES zebra_update_from_path(ZebraHandle zh, const char *path,
enum zebra_recctrl_action_t action)
{
if (!strcmp(path, "") || !strcmp(path, "-"))
{
char src[1024];
enum zebra_recctrl_action_t action)
{
if (!strcmp(path, "") || !strcmp(path, "-"))
{
char src[1024];
-
+
while (scanf("%1020s", src) == 1)
repositoryExtract(zh, src, action);
}
while (scanf("%1020s", src) == 1)
repositoryExtract(zh, src, action);
}