Skip to contentSkip to conversation

ipvsadm: Fix wrong format of --pe option in FMT_RULE listing

PATCH Applied Julian Anastasov 2 participants 2 messages Aug 22, 2013 IPVS

lore
Share & tools
lore

Julian Anastasov

author maintainer
#0 lore raw

PATCH 1/1 ipvsadm: Fix wrong format of --pe option in FMT_RULE listing

'ipvsadm -S' listed the persistence engine option in wrong format (' pe ...' instead of ' --pe ...') preventing any service with PE from restoring using 'ipvsadm -R'.

---
 ipvsadm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
ipvsadm.c +1 -1
index 0197515..58f8241 100644
@@ -1485,7 +1485,7 @@ print_service_entry(ipvs_service_entry_t *se, unsigned int format)
 				}
 		}
 		if (se->pe_name[0])
-			printf(" pe %s", se->pe_name);
+			printf(" --pe %s", se->pe_name);
 		if (se->flags & IP_VS_SVC_F_ONEPACKET)
 			printf(" -o");
 	} else if (format & FMT_STATS) {
Signature · 1 line
1.7.3.4
maintainer Applied
#1 lore raw
Quoted 5 lines · Julian Anastasov

'ipvsadm -S' listed the persistence engine option in wrong format (' pe ...' instead of ' --pe ...') preventing any service with PE from restoring using 'ipvsadm -R'.

Thanks, applied.

Quoted 20 lines
---
 ipvsadm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
ipvsadm.c +1 -1
index 0197515..58f8241 100644
@@ -1485,7 +1485,7 @@ print_service_entry(ipvs_service_entry_t *se, unsigned int format)
 				}
 		}
 		if (se->pe_name[0])
-			printf(" pe %s", se->pe_name);
+			printf(" --pe %s", se->pe_name);
 		if (se->flags & IP_VS_SVC_F_ONEPACKET)
 			printf(" -o");
 	} else if (format & FMT_STATS) {
Signature · 1 line
1.7.3.4