-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-8.8.0.z, rhel-9.2.0.z
-
None
-
None
-
Moderate
-
rhel-sst-security-crypto
-
ssg_security
-
None
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
Trying to execute the following command, it doesn't return but spins on the CPU:
# ipsec stop --help
This happens for other commands which are aliases of setup command, i.e. restart and start.
Root cause for this is the argument parsing is not correct: using "--help" only works if cmd variable was not set previously, which is not true when the command is an alias:
550 restart|--restart) 551 cmd="setup" 552 setupoption="--restart" 553 shift 554 ;; 555 help|--help) 556 # if cmd is unset, this is help for ipsec command 557 if [ -z "${cmd}" ]; then 558 ipsec_help 559 fi 560 ;;
Here above, executing "ipsec restart -help" leads to setting cmd, which makes the next argument ("-help") loop on block 555 because cmd is already set.
Please provide the package NVR for which bug is seen:
libreswan-4.9-3.el8_8.x86_64
libreswan-4.9-4.el9_2.x86_64
How reproducible:
Always
Steps to reproduce
See above
Expected results
Usage
Actual results
Spins on CPU