diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-02-15 11:18:33 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-02-15 11:18:33 +0000 |
| commit | b9572e1d0c8c089910e9137a2f4787cf15926925 (patch) | |
| tree | e3e540f8e91911ab621fea0698f1ff29df9ab227 /bin | |
| parent | 76c92e50b75491726006f27811e99ffb4e70eff5 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/pax/ar_io.c | 4 | ||||
| -rw-r--r-- | bin/pax/ar_subs.c | 5 | ||||
| -rw-r--r-- | bin/pax/buf_subs.c | 5 | ||||
| -rw-r--r-- | bin/pax/cache.c | 4 | ||||
| -rw-r--r-- | bin/pax/cpio.c | 3 | ||||
| -rw-r--r-- | bin/pax/file_subs.c | 3 | ||||
| -rw-r--r-- | bin/pax/ftree.c | 3 | ||||
| -rw-r--r-- | bin/pax/gen_subs.c | 3 | ||||
| -rw-r--r-- | bin/pax/options.c | 4 | ||||
| -rw-r--r-- | bin/pax/pat_rep.c | 4 | ||||
| -rw-r--r-- | bin/pax/pax.c | 11 | ||||
| -rw-r--r-- | bin/pax/sel_subs.c | 3 | ||||
| -rw-r--r-- | bin/pax/tables.c | 7 | ||||
| -rw-r--r-- | bin/pax/tar.c | 3 | ||||
| -rw-r--r-- | bin/pax/tty_subs.c | 5 |
15 files changed, 22 insertions, 45 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c index 8d0f8379aa93..a1e29f386f17 100644 --- a/bin/pax/ar_io.c +++ b/bin/pax/ar_io.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ar_io.c,v 1.4.2.1 1997/08/25 08:36:50 jkh Exp $ + * $Id: ar_io.c,v 1.4.2.2 1997/09/14 13:07:09 jkh Exp $ */ #ifndef lint @@ -42,11 +42,9 @@ static char const sccsid[] = "@(#)ar_io.c 8.2 (Berkeley) 4/18/94"; #endif /* not lint */ #include <sys/types.h> -#include <sys/time.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/mtio.h> -#include <sys/param.h> #include <signal.h> #include <string.h> #include <fcntl.h> diff --git a/bin/pax/ar_subs.c b/bin/pax/ar_subs.c index ce836da83608..76daa0613a27 100644 --- a/bin/pax/ar_subs.c +++ b/bin/pax/ar_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ar_subs.c,v 1.4.2.1 1997/08/25 08:36:51 jkh Exp $ + * $Id: ar_subs.c,v 1.4.2.2 1997/09/14 13:07:11 jkh Exp $ */ #ifndef lint @@ -44,7 +44,6 @@ static char const sccsid[] = "@(#)ar_subs.c 8.2 (Berkeley) 4/18/94"; #include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <signal.h> #include <string.h> #include <stdio.h> @@ -743,7 +742,7 @@ copy() * set up the destination dir path and make sure it is a directory. We * make sure we have a trailing / on the destination */ - dlen = l_strncpy(dirbuf, dirptr, PAXPATHLEN); + dlen = l_strncpy(dirbuf, dirptr, sizeof(dirbuf) - 1); dest_pt = dirbuf + dlen; if (*(dest_pt-1) != '/') { *dest_pt++ = '/'; diff --git a/bin/pax/buf_subs.c b/bin/pax/buf_subs.c index 7a4dcf58dabe..18eda88bc652 100644 --- a/bin/pax/buf_subs.c +++ b/bin/pax/buf_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: buf_subs.c,v 1.4.2.1 1997/08/25 08:36:52 jkh Exp $ + * $Id: buf_subs.c,v 1.4.2.2 1997/09/14 13:07:13 jkh Exp $ */ #ifndef lint @@ -42,10 +42,7 @@ static char const sccsid[] = "@(#)buf_subs.c 8.2 (Berkeley) 4/18/94"; #endif /* not lint */ #include <sys/types.h> -#include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> -#include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> diff --git a/bin/pax/cache.c b/bin/pax/cache.c index b98295111231..a6e20d66e1cd 100644 --- a/bin/pax/cache.c +++ b/bin/pax/cache.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cache.c,v 1.3.2.2 1997/08/25 08:36:54 jkh Exp $ + * $Id: cache.c,v 1.3.2.3 1997/09/14 13:07:15 jkh Exp $ */ #ifndef lint @@ -42,9 +42,7 @@ static char const sccsid[] = "@(#)cache.c 8.1 (Berkeley) 5/31/93"; #endif /* not lint */ #include <sys/types.h> -#include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <string.h> #include <stdio.h> #include <pwd.h> diff --git a/bin/pax/cpio.c b/bin/pax/cpio.c index 4a7237a7fbdb..66c4fa47c74a 100644 --- a/bin/pax/cpio.c +++ b/bin/pax/cpio.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cpio.c,v 1.4.2.1 1997/08/25 08:36:55 jkh Exp $ + * $Id: cpio.c,v 1.4.2.2 1997/09/14 13:07:17 jkh Exp $ */ #ifndef lint @@ -44,7 +44,6 @@ static char const sccsid[] = "@(#)cpio.c 8.1 (Berkeley) 5/31/93"; #include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <string.h> #include <stdio.h> #include <unistd.h> diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c index 8d82e07e4d17..27e22b7704ce 100644 --- a/bin/pax/file_subs.c +++ b/bin/pax/file_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: file_subs.c,v 1.4.2.1 1997/08/25 08:36:56 jkh Exp $ + * $Id: file_subs.c,v 1.4.2.2 1997/09/14 13:07:21 jkh Exp $ */ #ifndef lint @@ -45,7 +45,6 @@ static char const sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93"; #include <sys/time.h> #include <sys/stat.h> #include <unistd.h> -#include <sys/param.h> #include <fcntl.h> #include <string.h> #include <stdio.h> diff --git a/bin/pax/ftree.c b/bin/pax/ftree.c index 55e29dbf6ce4..63a867760d40 100644 --- a/bin/pax/ftree.c +++ b/bin/pax/ftree.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ftree.c,v 1.4.2.1 1997/08/25 08:36:57 jkh Exp $ + * $Id: ftree.c,v 1.4.2.2 1997/09/14 13:07:23 jkh Exp $ */ #ifndef lint @@ -44,7 +44,6 @@ static char const sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94"; #include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <unistd.h> #include <string.h> #include <stdio.h> diff --git a/bin/pax/gen_subs.c b/bin/pax/gen_subs.c index c5bdd6c9032b..66e24daa48cb 100644 --- a/bin/pax/gen_subs.c +++ b/bin/pax/gen_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: gen_subs.c,v 1.6 1995/10/23 21:23:14 ache Exp $ + * $Id: gen_subs.c,v 1.6.2.1 1997/08/25 08:37:00 jkh Exp $ */ #ifndef lint @@ -44,7 +44,6 @@ static char const sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93"; #include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <stdio.h> #include <utmp.h> #include <unistd.h> diff --git a/bin/pax/options.c b/bin/pax/options.c index a4aab585de65..cc4c68c60ee9 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: options.c,v 1.4.2.1 1997/08/25 08:37:01 jkh Exp $ + * $Id: options.c,v 1.4.2.2 1997/09/14 13:07:25 jkh Exp $ */ #ifndef lint @@ -42,10 +42,8 @@ static char const sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #endif /* not lint */ #include <sys/types.h> -#include <sys/time.h> #include <sys/stat.h> #include <sys/mtio.h> -#include <sys/param.h> #include <stdio.h> #include <string.h> #include <unistd.h> diff --git a/bin/pax/pat_rep.c b/bin/pax/pat_rep.c index 3c54b0393e61..ae88303ea1d5 100644 --- a/bin/pax/pat_rep.c +++ b/bin/pax/pat_rep.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pat_rep.c,v 1.5.2.2 1997/08/25 08:37:02 jkh Exp $ + * $Id: pat_rep.c,v 1.5.2.3 1997/09/14 13:07:27 jkh Exp $ */ #ifndef lint @@ -42,9 +42,7 @@ static char const sccsid[] = "@(#)pat_rep.c 8.2 (Berkeley) 4/18/94"; #endif /* not lint */ #include <sys/types.h> -#include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <stdio.h> #include <string.h> #include <unistd.h> diff --git a/bin/pax/pax.c b/bin/pax/pax.c index 84acd703a8cb..596eef0f6bdb 100644 --- a/bin/pax/pax.c +++ b/bin/pax/pax.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pax.c,v 1.5.2.1 1997/08/25 08:37:03 jkh Exp $ + * $Id: pax.c,v 1.5.2.2 1997/09/14 13:07:29 jkh Exp $ */ #ifndef lint @@ -47,17 +47,16 @@ static char const copyright[] = static char const sccsid[] = "@(#)pax.c 8.2 (Berkeley) 4/18/94"; #endif /* not lint */ -#include <stdio.h> #include <sys/types.h> -#include <sys/param.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/resource.h> -#include <signal.h> -#include <unistd.h> -#include <stdlib.h> #include <errno.h> #include <locale.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> #include "pax.h" #include "extern.h" static int gen_init __P((void)); diff --git a/bin/pax/sel_subs.c b/bin/pax/sel_subs.c index 7e03214651f5..837bee03c054 100644 --- a/bin/pax/sel_subs.c +++ b/bin/pax/sel_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sel_subs.c,v 1.3.2.1 1997/08/25 08:37:04 jkh Exp $ + * $Id: sel_subs.c,v 1.3.2.2 1997/09/14 13:07:33 jkh Exp $ */ #ifndef lint @@ -44,7 +44,6 @@ static char const sccsid[] = "@(#)sel_subs.c 8.1 (Berkeley) 5/31/93"; #include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <pwd.h> #include <grp.h> #include <stdio.h> diff --git a/bin/pax/tables.c b/bin/pax/tables.c index 299df1fcdc4f..af6b64ae6cf7 100644 --- a/bin/pax/tables.c +++ b/bin/pax/tables.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tables.c,v 1.4.2.2 1997/08/25 08:37:05 jkh Exp $ + * $Id: tables.c,v 1.4.2.3 1997/09/14 13:07:34 jkh Exp $ */ #ifndef lint @@ -44,13 +44,12 @@ static char const sccsid[] = "@(#)tables.c 8.1 (Berkeley) 5/31/93"; #include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <sys/fcntl.h> +#include <errno.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <unistd.h> -#include <errno.h> -#include <stdlib.h> #include "pax.h" #include "tables.h" #include "extern.h" diff --git a/bin/pax/tar.c b/bin/pax/tar.c index 500e4b55395c..4c04df82ee7a 100644 --- a/bin/pax/tar.c +++ b/bin/pax/tar.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tar.c,v 1.4.2.1 1997/08/25 08:37:05 jkh Exp $ + * $Id: tar.c,v 1.4.2.2 1997/09/14 13:07:35 jkh Exp $ */ #ifndef lint @@ -44,7 +44,6 @@ static char const sccsid[] = "@(#)tar.c 8.2 (Berkeley) 4/18/94"; #include <sys/types.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <string.h> #include <stdio.h> #include <unistd.h> diff --git a/bin/pax/tty_subs.c b/bin/pax/tty_subs.c index bb842d9b254b..499465e72f45 100644 --- a/bin/pax/tty_subs.c +++ b/bin/pax/tty_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tty_subs.c,v 1.3.2.1 1997/08/25 08:37:06 jkh Exp $ + * $Id: tty_subs.c,v 1.3.2.2 1997/09/14 13:07:37 jkh Exp $ */ #ifndef lint @@ -42,12 +42,9 @@ static char const sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94"; #endif /* not lint */ #include <sys/types.h> -#include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #include <fcntl.h> #include <stdio.h> -#include <errno.h> #include <unistd.h> #include <stdlib.h> #include <string.h> |
