Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd40f2c3

Browse files
committed
Parse backup mode properly
1 parenta100094 commitd40f2c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎catalog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,11 @@ parse_backup_mode(const char *value)
563563
v++;
564564
len=strlen(v);
565565

566-
if (len>0&&pg_strncasecmp("full",v,strlen("full"))==0)
566+
if (len>0&&pg_strncasecmp("full",v,len)==0)
567567
returnBACKUP_MODE_FULL;
568-
elseif (len>0&&pg_strncasecmp("page",v,strlen("page"))==0)
568+
elseif (len>0&&pg_strncasecmp("page",v,len)==0)
569569
returnBACKUP_MODE_DIFF_PAGE;
570-
elseif (len>0&&pg_strncasecmp("ptrack",v,strlen("ptrack"))==0)
570+
elseif (len>0&&pg_strncasecmp("ptrack",v,len)==0)
571571
returnBACKUP_MODE_DIFF_PTRACK;
572572

573573
/* Backup mode is invalid, so leave with an error */
@@ -621,4 +621,4 @@ pgBackupGetPath(const pgBackup *backup, char *path, size_t len, const char *subd
621621
free(datetime);
622622

623623
make_native_path(path);
624-
}
624+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp