Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 15699] New: Missing call to consolidate_params in resurrect

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 15699] New: Missing call to consolidate_params in resurrect
  • Date: 30 Apr 2010 09:34:50 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=15699

Summary: Missing call to consolidate_params in resurrect
Product: Sorcery
Version: Untargetted future release
Platform: x86
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P3
Component: Unknown
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: linschn AT gmail.com


The resurrect script does not consolidate its parameters before calling su as
the other scripts do.

Patch :
--- a/usr/sbin/resurrect Fri Apr 30 11:33:17 2010 +0200
+++ b/usr/sbin/resurrect Fri Apr 30 11:34:00 2010 +0200
@@ -313,10 +313,11 @@
. /etc/sorcery/config
if [[ $UID -gt 0 ]]; then
# validate the parameters before su-ing, since we may still drop out
- verify_parameters $*
+ verify_parameters $@

echo "Enter the root password, please."
- exec su -c "resurrect $@" root
+ PARAMS=$(consolidate_params "$@")
+ exec su -c "resurrect $PARAMS" root
else
main "$@"
fi

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




Archive powered by MHonArc 2.6.24.

Top of Page