1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-19 10:03:40 +00:00

Fix the segment fault when seafserv-gc , seaf-fsck and seaf-migrate receive a unrecognized option

This commit is contained in:
ly1217
2018-05-26 02:30:00 -07:00
parent a8c66e1bc6
commit 20169acefe
3 changed files with 3 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ static const struct option long_opts[] = {
{ "config-file", required_argument, NULL, 'c', },
{ "central-config-dir", required_argument, NULL, 'F' },
{ "seafdir", required_argument, NULL, 'd', },
{ 0, 0, 0, 0, },
};
static void usage ()

View File

@@ -25,6 +25,7 @@ static const struct option long_opts[] = {
{ "config-file", required_argument, NULL, 'c', },
{ "central-config-dir", required_argument, NULL, 'F' },
{ "seafdir", required_argument, NULL, 'd', },
{ 0, 0, 0, 0, },
};
static int

View File

@@ -28,6 +28,7 @@ static const struct option long_opts[] = {
{ "verbose", no_argument, NULL, 'V' },
{ "dry-run", no_argument, NULL, 'D' },
{ "rm-deleted", no_argument, NULL, 'r' },
{ 0, 0, 0, 0 },
};
static void usage ()