You are not logged in.

#1 2010-07-17 18:20:59

Bobtastic
Member
Registered: 2010-07-17
Posts: 1

little mistake in Wiki-Entry bundled 32bit chroot

Hello,

im new to Archlinux and i gotta say it ROX! xD

But

while setting up bundled 32bit system in 64bit Arch following this guide:

http://wiki.archlinux.org/index.php/Ins … _in_Arch64

i wanted to use the ccp-prog pasted there to give urls etc to 32bit Firefox
but i there is a little mistake in it:

#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;

int main(int argc, char **argv)
{
    string temp="schroot -p firefox ";
    if (argc>=2) temp+=+argv[1];
    system(temp.c_str());
    return 0;
}

if you use this the bash will interpret some parts of long urls and it wont work as it should.

In my opinion it should be

int main(int argc, char **argv)
{
    string temp="schroot -p firefox \"";
    string temp2="\"";
    if (argc>=2) temp+=+argv[1];
    temp+=temp2;
    system(temp.c_str());
    return 0;
}

so that the url etc stands between "".

Please tell me what u think about it, and if i am right how to edit the wiki entry . smile

Last edited by Bobtastic (2010-07-17 19:58:34)

Offline

#2 2010-07-17 21:42:32

doorknob60
Member
Registered: 2008-09-29
Posts: 404

Re: little mistake in Wiki-Entry bundled 32bit chroot

To edit it, just make an account on the wiki, then click the edit button on the wiki page smile I think that's all you need to do. And I can't confirm whether or not that's right, but it looks right, and if it works for you, then it's probably right smile

Offline

Board footer

Powered by FluxBB