From: Apple Date: Fri, 12 Jan 2007 01:54:28 +0000 (+0000) Subject: system_cmds-336.1.8.tar.gz X-Git-Tag: mac-os-x-10410ppc^0 X-Git-Url: https://git.saurik.com/apple/system_cmds.git/commitdiff_plain/ce6943859b6e2f6e0572683c67172dd1477d4254?ds=sidebyside system_cmds-336.1.8.tar.gz --- diff --git a/at.tproj/Makefile.dist b/at.tproj/Makefile.dist index bdfa515..1468a6c 100644 --- a/at.tproj/Makefile.dist +++ b/at.tproj/Makefile.dist @@ -1,4 +1,4 @@ -# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 04:21:18 wsanchez Exp $ +# $Id: Makefile.dist,v 1.1 1999/05/02 04:21:18 wsanchez Exp $ PROG= at SRCS= at.c panic.c parsetime.c diff --git a/atrun.tproj/Makefile.dist b/atrun.tproj/Makefile.dist index 726a2e7..0980f04 100644 --- a/atrun.tproj/Makefile.dist +++ b/atrun.tproj/Makefile.dist @@ -1,4 +1,4 @@ -# $Id: Makefile.dist,v 1.1.1.1 1999/05/02 04:21:19 wsanchez Exp $ +# $Id: Makefile.dist,v 1.1 1999/05/02 04:21:19 wsanchez Exp $ PROG= atrun BINDIR= /usr/libexec diff --git a/atrun.tproj/atrun.8 b/atrun.tproj/atrun.8 index 7ebc04e..8d50f58 100644 --- a/atrun.tproj/atrun.8 +++ b/atrun.tproj/atrun.8 @@ -27,7 +27,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id: atrun.8,v 1.1.1.1 1999/05/02 04:21:19 wsanchez Exp $ +.\" $Id: atrun.8,v 1.1 1999/05/02 04:21:19 wsanchez Exp $ .\" .Dd December 5, 1993 .Dt ATRUN 8 diff --git a/atrun.tproj/atrun.c b/atrun.tproj/atrun.c index 9d52ffa..4eac2cc 100644 --- a/atrun.tproj/atrun.c +++ b/atrun.tproj/atrun.c @@ -55,11 +55,7 @@ static const char rcsid[] = #include #endif -#if (MAXLOGNAME-1) > UT_NAMESIZE -#define LOGNAMESIZE UT_NAMESIZE -#else #define LOGNAMESIZE (MAXLOGNAME-1) -#endif /* Local headers */ @@ -119,7 +115,8 @@ run_file(const char *filename, uid_t uid, gid_t gid) pid_t pid; int fd_out, fd_in; int queue; - char mailbuf[LOGNAMESIZE + 1], fmt[49]; + char mailbuf[LOGNAMESIZE + 1]; + char *fmt = NULL; char *mailname = NULL; FILE *stream; int send_mail = 0; @@ -208,13 +205,15 @@ run_file(const char *filename, uid_t uid, gid_t gid) fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC); - snprintf(fmt, sizeof(fmt), - "#!/bin/sh\n# atrun uid=%%ld gid=%%ld\n# mail %%%ds %%d", - LOGNAMESIZE); + asprintf(&fmt, "%s%d%s", + "#!/bin/sh\n# atrun uid=%ld gid=%ld\n# mail %", + LOGNAMESIZE, + "s %d"); if (fscanf(stream, fmt, &nuid, &ngid, mailbuf, &send_mail) != 4) { syslog(LOG_ERR,"File %s is in wrong format - aborting", filename); exit(EXIT_FAILURE); } + free(fmt); if (mailbuf[0] == '-') { syslog(LOG_ERR,"illegal mail name %s in %s",mailbuf,filename); exit(EXIT_FAILURE); diff --git a/getty.tproj/getty.8 b/getty.tproj/getty.8 index cc6612f..a97f053 100644 --- a/getty.tproj/getty.8 +++ b/getty.tproj/getty.8 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)getty.8 8.1 (Berkeley) 6/4/93 -.\" $Id: getty.8,v 1.1.1.1 1999/05/02 04:21:29 wsanchez Exp $ +.\" $Id: getty.8,v 1.1 1999/05/02 04:21:29 wsanchez Exp $ .\" .Dd June 4, 1993 .Dt GETTY 8 diff --git a/getty.tproj/gettytab.5 b/getty.tproj/gettytab.5 index 51d4cfe..38e9a96 100644 --- a/getty.tproj/gettytab.5 +++ b/getty.tproj/gettytab.5 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)gettytab.5 8.4 (Berkeley) 4/19/94 -.\" $Id: gettytab.5,v 1.1.1.1 1999/05/02 04:21:29 wsanchez Exp $ +.\" $Id: gettytab.5,v 1.1 1999/05/02 04:21:29 wsanchez Exp $ .\" .Dd April 19, 1994 .Dt GETTYTAB 5 diff --git a/getty.tproj/ttys.5 b/getty.tproj/ttys.5 index b2f6584..3a2fc45 100644 --- a/getty.tproj/ttys.5 +++ b/getty.tproj/ttys.5 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)ttys.5 8.1 (Berkeley) 6/4/93 -.\" $Id: ttys.5,v 1.1.1.1 1999/05/02 04:21:29 wsanchez Exp $ +.\" $Id: ttys.5,v 1.1 1999/05/02 04:21:29 wsanchez Exp $ .\" .Dd June 4, 1993 .Dt TTYS 5 diff --git a/zic.tproj/datfiles/tzdata2006a.tar.gz b/zic.tproj/datfiles/tzdata2006a.tar.gz deleted file mode 100644 index 3e4e878..0000000 Binary files a/zic.tproj/datfiles/tzdata2006a.tar.gz and /dev/null differ diff --git a/zic.tproj/datfiles/tzdata2007a.tar.gz b/zic.tproj/datfiles/tzdata2007a.tar.gz new file mode 100644 index 0000000..b242def Binary files /dev/null and b/zic.tproj/datfiles/tzdata2007a.tar.gz differ