X-Git-Url: http://git.onelab.eu/?p=util-vserver.git;a=blobdiff_plain;f=src%2Fexec-ulimit.c;h=510e5d0456abd53975f48f6cf9533831a4918070;hp=444a7f067e50bdb6e557412a595fc78adea10dc9;hb=2822ba293eb308225c50d346930c47bf98d9927b;hpb=2894fc5a4c8335e4d7221311fed0556f33f8047c diff --git a/src/exec-ulimit.c b/src/exec-ulimit.c index 444a7f0..510e5d0 100644 --- a/src/exec-ulimit.c +++ b/src/exec-ulimit.c @@ -1,4 +1,4 @@ -// $Id: exec-ulimit.c 2371 2006-11-05 17:46:33Z dhozac $ --*- c -*-- +// $Id: exec-ulimit.c,v 1.7 2004/05/08 01:40:25 ensc Exp $ --*- c -*-- // Copyright (C) 2003 Enrico Scholz // @@ -34,13 +34,6 @@ #define ENSC_WRAPPERS_RESOURCE 1 #include -/* dietlibc specifies this as (~0UL>>1), which is what's returned from - * sys_old_getrlimit, called on some arches for getrlimit. - * Reset it here so the kernel will have the correct values when we set it. */ -#undef RLIM_INFINITY -#define RLIM_INFINITY (~0UL) -#define OLD_RLIM_INFINITY (~0UL>>1) - #define DECLARE_LIMIT(RES,FNAME) { #FNAME, RLIMIT_##RES } int wrapper_exit_code = 255; @@ -166,7 +159,6 @@ int main(int argc, char *argv[]) { size_t i; int cur_fd = Eopen(".", O_RDONLY, 0); - bool in_dir = false; if (argc==2) { if (strcmp(argv[1], "--help")==0) showHelp(1,argv[0],0); @@ -179,29 +171,15 @@ int main(int argc, char *argv[]) } if (chdir(argv[1])!=-1) { - in_dir = true; - } - for (i=0; i