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

Commit8775a39

Browse files
committed
fix retention show message, when no policy is set
1 parent23abfcb commit8775a39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎show.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ do_show(time_t backup_id)
6868
int
6969
do_retention_show(void)
7070
{
71+
if (retention_redundancy==0&&retention_window==0)
72+
{
73+
fprintf(stdout,"No retention policy is set\n");
74+
return0;
75+
}
76+
7177
fprintf(stdout,"# retention policy\n");
7278
if (retention_redundancy>0)
7379
fprintf(stdout,"REDUNDANCY=%u\n",retention_redundancy);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp