summaryrefslogtreecommitdiff
path: root/scheduler/cups-exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'scheduler/cups-exec.c')
-rw-r--r--scheduler/cups-exec.c21
1 files changed, 3 insertions, 18 deletions
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 */
@@ -76,20 +75,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 $".
*/