History log of /freebsd-10-stable/usr.sbin/lmcconfig/lmcconfig.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 300279 20-May-2016 truckman

MFC 299866

Use strlcpy() instead of strncpy() when copying ifname to ensure
that it is NUL terminated. Additional NUL padding is not required
for short names.

Reported by: Coverity
CID: 974852


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 239988 01-Sep-2012 ed

Rework time handling.

After I made the previous commit, I noticed the code does some things it
shouldn't. It casts a struct timeval to a time_t, assuming tv_sec is the
first member. Also, we are not interested in microseconds, so it is
better to just call time(NULL).

MFC after: 1 month


# 239986 01-Sep-2012 ed

Remove unneeded struct timezone.

We're only interested in a timestamp -- not the timezone.


# 216600 20-Dec-2010 uqs

lmcconfig(8): bump to WARNS=3, fix typo in usage while here

Slight style(9) improvments
- function definitions
- sort #include


# 216599 20-Dec-2010 uqs

Fix type used to hold fgetc(3) output, this should help arm and powerpc
which have char == unsigned char


# 216597 20-Dec-2010 uqs

Remove useless conditional.

`vga' cannot be less than 0x3f when reaching the check.

Coverity Prevent: CID 5196


# 188826 19-Feb-2009 imp

Include string.h for strncpy prototype
Include strings.h for bcopy and bzero prototype


# 150850 03-Oct-2005 scottl

Add the lmcconfig tool for controlling the lmc driver. Add man pages and
glue.

Submitted by: David Boggs