mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-19 18:16:25 +00:00
Fix the segment fault when seafserv-gc , seaf-fsck and seaf-migrate receive a unrecognized option
This commit is contained in:
@@ -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 ()
|
||||
|
@@ -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
|
||||
|
@@ -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 ()
|
||||
|
Reference in New Issue
Block a user