diff options
author | Didier Raboud <odyx@debian.org> | 2014-01-02 23:05:18 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2014-01-02 23:05:18 +0100 |
commit | b4db6beca042dcbfd5530ef8c559bfab71a11ade (patch) | |
tree | a2d41ae625d277d3285167fc64b73b58bc010065 /scheduler/cups-exec.c | |
parent | d13746555c30d1d1bd617dcf64d5b92e319ae2b5 (diff) | |
download | cups-upstream/1.7.0.tar.gz |
Imported Upstream version 1.7.0upstream/1.7.0
Diffstat (limited to 'scheduler/cups-exec.c')
-rw-r--r-- | scheduler/cups-exec.c | 21 |
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 $". */ |