At least two solutions exists:
1) TMP_DN=`echo "$DN" | sed "s,\\\\\,\\\\\\\\\\\\\,g"`
or
2) TMP_DN=$(echo "$DN" | sed "s/\\\/\\\\\\\/g")
this patch uses the first variant.
---
** [tickets:#1498] amf: amf-state dosen't work with DNs including backslashes**
**Status:** review
**Milestone:** 4.5.2
**Created:** Wed Sep 23, 2015 12:17 PM UTC by hano
**Last Updated:** Wed Sep 23, 2015 12:17 PM UTC
**Owner:** hano
amf-state dosen't work with DNs including backslashes, e.g:
amf-state csiass ha
"safCSIComp=safComp=EDS\,safSu=SC-1\,safSg=2N\,safApp=OpenSAF,safCsi=EDS,safSi=SC-2N,safApp=OpenSAF"
returns nothing instead of e.g:
saAmfCSICompHAState=ACTIVE(1)
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets