title: Passing command line arguments through a C setuid wrapper to another script
body: <p>I have the following c setuid wrapper:</p>
  
  <pre><code>#include &lt;unistd.h&gt;
  #include &lt;sys/types.h&gt;
  #include &lt;pwd.h&gt;
  
  main( int argc, char ** argv ) {
      struct passwd *pwd;
      char user[] = "cvmfs-test";
  
      pwd = getpwnam(user);
  
      setuid(pwd-&gt;pw_uid);
      system(argv[1]);
  }
  </code></pre>
  
  <p>I can call my perl script with <code>./cwrapper perlscript.pl</code>.</p>
  
  <p>I would like to do <code>./cwrapper perlscript.pl --option1 --option2 --option3</code> and elaborate all arguments inside the perl script with GetOptions. How should I change my wrapper?</p>