Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting
From: Eric Mertens <emmf26(at)umr.edu>
Date: Wed Apr 09 2003 - 12:46:44 EDT


I noticed what I believe to be the following typos in the source for usr.bin/last/last.1
usr.bin/last/last.c

Through out the program the -d flag is show to use the format [[CC]YY][MMDD]hhmm[.SS]
However the source code does not allow for YYhhmm (and etc.)
I have therefore updated the source to read [[[CC]YY]MMDD]hhmm[.SS]

  • last.1 Sun Dec 17 15:33:01 2000 +++ /home/eric/last.1 Wed Apr 9 11:42:04 2003 @@ -47,7 +47,7 @@
    .Op Fl f Ar file
    .Op Fl h Ar host
    .Op Fl t Ar tty
    -.Op Fl d Ar [[CC]YY][MMDD]hhmm[.SS] +.Op Fl d Ar [[[CC]YY]MMDD]hhmm[.SS]
    .Op Ar user ...
    .Sh DESCRIPTION
    The @@ -111,7 +111,7 @@
    .Fl n
    are ignored. The argument should be in the form -.Dq [[CC]YY][MMDD]hhmm[.SS] +.Dq [[[CC]YY]MMDD]hhmm[.SS] where each pair of letters represents the following:
    .Pp
    .Bl -tag -width Ds -compact -offset indent
  • last.c Sun Apr 6 21:35:14 2003 +++ /home/eric/last.c Wed Apr 9 11:43:11 2003 @@ -567,7 +567,7 @@ /*
    • dateconv --
    • Convert the snapshot time in command line given in the format - * [[CC]YY][MMDD]hhmm[.SS]] to a time_t. + * [[[CC]YY]MMDD]hhmm[.SS]] to a time_t.
    • Derived from atime_arg1() in usr.bin/touch/touch.c */ time_t @@ -585,7 +585,7 @@ if ((t = localtime(&timet)) == NULL) err(1, "localtime");
      • /* [[CC]YY][MMDD]hhmm[.SS] */ + /* [[[CC]YY]MMDD]hhmm[.SS] */ if ((p = strchr(arg, '.')) == NULL) t->tm_sec = 0; /* Seconds defaults to 0. */ else { @@ -633,7 +633,7 @@ timet = mktime(t); if (timet == -1) terr: errx(1,
      • "out of range or illegal time specification: [[CC]YY][MMDD]hhmm[.SS]"); + "out of range or illegal time specification: [[[CC]YY]MMDD]hhmm[.SS]"); return (timet); }

@@ -663,6 +663,6 @@

        fprintf(stderr,
            "usage: %s [-#] [-csT] [-f file] [-t tty] [-h host]"
-           " [-d [[CC]YY][MMDD]hhmm[.SS]] [user ...]\n", __progname);
+           " [-d [[[CC]YY]MMDD]hhmm[.SS]] [user ...]\n", __progname);
        exit(1);

 } Received on Wed Apr 9 12:48:23 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:53 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library