Devin Teske
82ac9f2bf7
Use snprintf(3) in place of unbounded sprintf(3) (prevent buffer overflow).
...
Use adequately sized buffer for error(s) (512 -> PATH_MAX + 512).
Fix the following style(9) nits while here:
- distfetch.c uses PATH_MAX while distextract.c uses MAXPATHLEN;
standardize on one (PATH_MAX)
- Move $FreeBSD$ from comment to __FBSDID()
- Sort included headers (alphabetically, sys/* at top)
- Add missing header includes (e.g., <stdlib.h> for getenv(3),
calloc(3)/malloc(3)/free(3), and atoi(3); <string.h> for strdup(3),
strrchr(3), strsep(3), and strcmp(3); <ctype.h> for isspace(3); and
<unistd.h> for chdir(2), etc.)
- Remove rogue newline at end of distfetch.c
- Don't declare variables in if-, while-, or other statement
NB: To prevent masking of prior declarations atop function
- Perform stack alignment for variable declarations
- Add missing function prototype for count_files() in distextract.c
- Break out single-line multivariable-declarations
NB: Aligning similarly-named variables with one-char difference(s)
NB: Minimizes diffs and makes future diffs more clear
- Use err(3) family of functions (requires s/int err;/int retval;/g)
Reviewed by: nwhitehorn, julian
2014-09-29 00:35:12 +00:00
..
2013-03-17 06:54:04 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-08-19 15:04:32 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-04-05 22:13:32 +00:00
2014-06-20 09:57:27 +00:00
2014-09-01 20:18:09 +00:00
2013-07-10 07:40:30 +00:00
2014-09-23 19:12:06 +00:00
2014-09-23 01:17:22 +00:00
2014-09-27 03:43:49 +00:00
2014-06-27 15:20:34 +00:00
2014-07-29 19:49:27 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2013-08-07 00:00:48 +00:00
2014-06-20 09:57:27 +00:00
2014-09-02 22:59:40 +00:00
2014-09-29 00:35:12 +00:00
2014-07-07 00:27:09 +00:00
2014-08-19 15:04:32 +00:00
2014-07-17 18:24:34 +00:00
2014-06-20 09:57:27 +00:00
2014-07-17 06:57:26 +00:00
2012-10-07 19:53:04 +00:00
2014-07-29 19:49:27 +00:00
2014-06-20 13:13:38 +00:00
2013-12-25 15:23:01 +00:00
2014-08-19 15:04:32 +00:00
2014-08-19 15:04:32 +00:00
2014-09-13 10:34:23 +00:00
2014-09-18 17:39:04 +00:00
2014-06-23 18:13:42 +00:00
2014-04-06 16:35:49 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2012-06-03 06:57:47 +00:00
2012-10-22 03:00:37 +00:00
2014-06-20 09:57:27 +00:00
2014-08-19 15:04:32 +00:00
2013-10-27 21:06:17 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2013-04-02 05:30:41 +00:00
2014-09-28 11:32:46 +00:00
2014-06-20 09:57:27 +00:00
2014-08-19 15:04:32 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-08-19 15:04:32 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-08-26 09:10:28 +00:00
2014-09-13 02:15:31 +00:00
2014-06-20 09:57:27 +00:00
2014-05-06 04:22:01 +00:00
2014-05-06 04:22:01 +00:00
2014-06-20 09:57:27 +00:00
2012-10-19 14:49:42 +00:00
2014-06-20 09:57:27 +00:00
2014-09-13 18:40:12 +00:00
2014-08-04 16:32:08 +00:00
2014-05-06 04:22:01 +00:00
2014-08-26 09:40:14 +00:00
2014-08-26 10:55:08 +00:00
2012-09-01 14:45:15 +00:00
2013-02-14 14:44:08 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-09-18 17:01:45 +00:00
2014-08-19 15:04:32 +00:00
2014-08-26 22:20:02 +00:00
2014-09-18 03:11:59 +00:00
2014-08-19 15:04:32 +00:00
2012-10-22 02:12:15 +00:00
2014-07-07 00:27:09 +00:00
2014-09-19 23:38:44 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2013-11-09 14:48:50 +00:00
2014-08-19 21:04:31 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2013-04-11 18:46:41 +00:00
2014-05-06 04:22:01 +00:00
2014-09-18 14:41:57 +00:00
2014-06-20 09:57:27 +00:00
2012-05-17 11:50:12 +00:00
2014-06-20 09:57:27 +00:00
2014-07-18 06:48:02 +00:00
2014-09-23 13:58:39 +00:00
2012-11-18 16:33:51 +00:00
2014-08-10 20:05:13 +00:00
2014-07-17 18:24:34 +00:00
2014-06-20 09:57:27 +00:00
2014-08-19 18:47:47 +00:00
2014-06-20 09:57:27 +00:00
2014-08-19 15:04:32 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-05-20 14:39:22 +00:00
2014-06-20 09:57:27 +00:00
2014-08-06 22:17:26 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-07-29 19:49:27 +00:00
2014-06-20 09:57:27 +00:00
2014-02-11 15:16:49 +00:00
2014-08-21 19:04:15 +00:00
2014-07-17 18:24:34 +00:00
2014-08-19 15:04:32 +00:00
2014-06-27 18:51:19 +00:00
2014-02-06 09:57:27 +00:00
2012-09-27 23:31:19 +00:00
2012-10-19 14:49:42 +00:00
2014-06-20 09:57:27 +00:00
2012-10-19 14:49:42 +00:00
2014-08-20 17:27:15 +00:00
2014-03-14 03:07:51 +00:00
2014-03-14 03:07:51 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-04-13 05:21:56 +00:00
2014-06-20 09:57:27 +00:00
2014-05-06 04:22:01 +00:00
2013-05-03 23:51:32 +00:00
2014-06-20 09:57:27 +00:00
2013-09-02 20:44:19 +00:00
2014-06-20 09:57:27 +00:00
2013-08-17 22:13:26 +00:00
2014-06-28 15:53:28 +00:00
2014-06-20 09:57:27 +00:00
2014-08-19 15:04:32 +00:00
2014-07-16 19:02:30 +00:00
2014-01-22 16:50:18 +00:00
2013-09-07 20:25:22 +00:00
2014-06-20 09:57:27 +00:00
2014-09-01 16:12:29 +00:00
2014-06-20 09:57:27 +00:00
2014-05-06 04:22:01 +00:00
2014-07-18 23:23:52 +00:00
2014-05-06 04:22:01 +00:00
2014-05-06 04:22:01 +00:00
2014-06-20 09:57:27 +00:00
2014-06-06 04:09:07 +00:00
2014-03-16 04:09:22 +00:00
2014-08-17 19:06:26 +00:00
2014-09-01 14:04:51 +00:00
2012-05-08 15:18:35 +00:00
2014-05-06 04:22:01 +00:00
2014-05-15 16:44:25 +00:00
2014-07-05 20:08:25 +00:00
2014-09-08 09:16:07 +00:00
2013-03-13 12:23:14 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-09-01 16:25:08 +00:00
2014-06-20 09:57:27 +00:00
2014-07-17 18:24:34 +00:00
2014-06-20 09:57:27 +00:00
2014-08-25 05:52:05 +00:00
2014-07-17 18:24:34 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2014-06-20 09:57:27 +00:00
2013-10-15 07:37:30 +00:00
2014-06-19 13:18:23 +00:00
2014-09-10 19:00:17 +00:00
2014-09-13 02:15:31 +00:00
2014-09-13 02:15:31 +00:00
2013-06-28 21:00:08 +00:00
2013-06-28 21:00:08 +00:00