From b4db6beca042dcbfd5530ef8c559bfab71a11ade Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Thu, 2 Jan 2014 23:05:18 +0100 Subject: Imported Upstream version 1.7.0 --- scheduler/cups-exec.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'scheduler/cups-exec.c') diff --git a/scheduler/cups-exec.c b/scheduler/cups-exec.c index 004045fb..3474c6e3 100644 --- a/scheduler/cups-exec.c +++ b/scheduler/cups-exec.c @@ -1,9 +1,9 @@ /* - * "$Id: cups-exec.c 4274 2013-04-09 20:10:23Z msweet $" + * "$Id: cups-exec.c 11144 2013-07-17 02:45:55Z msweet $" * * Sandbox helper for CUPS. * - * Copyright 2007-2012 by Apple Inc. + * Copyright 2007-2013 by Apple Inc. * * These coded instructions, statements, and computer programs are the * property of Apple Inc. and are protected by Federal copyright @@ -43,7 +43,6 @@ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { - int i; /* Looping var */ #ifdef HAVE_SANDBOX_H char *sandbox_error = NULL; /* Sandbox error, if any */ #endif /* HAVE_SANDBOX_H */ @@ -75,20 +74,6 @@ main(int argc, /* I - Number of command-line args */ } #endif /* HAVE_SANDBOX_H */ - /* - * Close file descriptors we don't need (insurance): - * - * 0 = stdin - * 1 = stdout - * 2 = stderr - * 3 = back-channel - * 4 = side-channel - * 5-N = unused - */ - - for (i = 5; i < 1024; i ++) - close(i); - /* * Execute the program... */ @@ -105,5 +90,5 @@ main(int argc, /* I - Number of command-line args */ /* - * End of "$Id: cups-exec.c 4274 2013-04-09 20:10:23Z msweet $". + * End of "$Id: cups-exec.c 11144 2013-07-17 02:45:55Z msweet $". */ -- cgit v1.2.3