~allison/ubuntu/oneiric/backuppc/merge-debian-suidperl

« back to all changes in this revision

Viewing changes to debian/setuidwrapper.c

  • Committer: Bazaar Package Importer
  • Author(s): Allison Randal
  • Date: 2011-05-29 17:49:10 UTC
  • Revision ID: james.westby@ubuntu.com-20110529174910-w3cfhi7da5bxwbe5
Tags: 3.2.0-3ubuntu5
Replace dependency on perl-suid with a small setuid wrapper, since the
perl-suid package been removed in Perl 5.12. (LP: #786250) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <unistd.h>
 
2
 
 
3
#ifndef REAL_PATH
 
4
#define REAL_PATH "/usr/share/backuppc/cgi-bin/BackupPC_Admin.pl"
 
5
#endif
 
6
 
 
7
int main(ac, av)
 
8
char **av;
 
9
{
 
10
    execv(REAL_PATH, av);
 
11
    return 0;
 
12
}
 
13