summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Wissler2008-06-05 18:47:10 +0200
committerBastian Wissler2008-06-05 18:47:10 +0200
commit9a7a41dea664d9aa460e8ef1877df58cb82850a0 (patch)
tree8c30fc132920cdb9768c38bb1126993a815256e2
parentBugFix (diff)
downloadvmchooser-9a7a41dea664d9aa460e8ef1877df58cb82850a0.tar.gz
vmchooser-9a7a41dea664d9aa460e8ef1877df58cb82850a0.tar.xz
vmchooser-9a7a41dea664d9aa460e8ef1877df58cb82850a0.zip
Changes on printer.sh /scanner.sh (very RZ-specific)
git-svn-id: http://svn.openslx.org/svn/openslx/openslx-src-tools/trunk/os-plugins/plugins/vmchooser@1848 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r--vmchooser/runImage.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/vmchooser/runImage.cxx b/vmchooser/runImage.cxx
index 0a57736..613c1da 100644
--- a/vmchooser/runImage.cxx
+++ b/vmchooser/runImage.cxx
@@ -117,7 +117,9 @@ const char* writeConfXml(DataEntry& dat) {
const int MAX_LENGTH = 300;
- char* pname = getFolderName();
+ //char* pname = getFolderName();
+ char pname[MAX_LENGTH];
+ strcpy(pname,"/var/lib/vmware/runscripts");
xmlNodePtr cur = 0;
xmlNodePtr root = 0;
@@ -142,7 +144,8 @@ const char* writeConfXml(DataEntry& dat) {
// add "printers" and "scanners" - XML-Nodes
addPrinters(root, pname);
- pname = getFolderName();
+ //char* pname = getFolderName();
+ strcpy(pname,"/var/lib/vmware/runscripts");
strncat(pname, "/scanner.sh", MAX_LENGTH);
addScanners(root, pname);