Jim Meyering
37c05b6267
Include assert.h.
...
(fillrand): Add a parameter, size_max.
Add an assertion.
Adjust caller.
(dopass): Break out of the `for (;;)' loop if size < offset.
That can happen now that dopass is called with SIZE == -1.
(do_wipefd): Accept a length of zero only for a regular file.
If lseek fails or returns 0 for a non-regular file, let dopass
determine the length.
Inspired by a patch from Alan Iwi.
2000-10-28 11:49:52 +00:00
..
1997-06-25 17:05:56 +00:00
1999-04-13 14:44:33 +00:00
1998-06-29 15:57:45 +00:00
2000-05-07 14:49:06 +00:00
2000-10-21 19:57:41 +00:00
2000-10-22 21:11:53 +00:00
2000-07-30 16:16:16 +00:00
2000-09-30 09:39:41 +00:00
2000-07-30 16:16:16 +00:00
2000-05-07 14:49:06 +00:00
2000-05-20 22:03:55 +00:00
2000-08-19 11:09:03 +00:00
2000-09-22 14:14:55 +00:00
2000-09-04 20:51:12 +00:00
2000-07-30 17:08:05 +00:00
1998-04-06 08:14:58 +00:00
2000-10-22 13:10:20 +00:00
2000-08-05 08:34:25 +00:00
2000-09-07 07:08:17 +00:00
2000-10-26 22:36:39 +00:00
1998-02-06 20:48:10 +00:00
2000-10-22 14:03:33 +00:00
2000-07-30 16:19:33 +00:00
2000-08-08 07:11:12 +00:00
2000-04-08 19:04:00 +00:00
2000-10-25 08:39:29 +00:00
2000-08-20 09:55:23 +00:00
2000-05-07 14:51:07 +00:00
2000-05-07 14:51:49 +00:00
2000-05-20 22:06:38 +00:00
2000-05-07 14:52:16 +00:00
2000-07-09 07:11:28 +00:00
2000-05-20 22:06:38 +00:00
2000-08-07 13:19:52 +00:00
2000-05-12 22:38:58 +00:00
2000-08-07 13:27:24 +00:00
2000-05-07 14:53:15 +00:00
2000-05-07 14:53:15 +00:00
2000-06-26 06:32:58 +00:00
2000-09-30 08:20:23 +00:00
2000-05-20 22:06:38 +00:00
2000-09-04 15:22:00 +00:00
2000-05-07 14:55:15 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
2000-10-22 13:15:22 +00:00
1993-06-16 15:24:57 +00:00
2000-10-22 11:51:50 +00:00
2000-10-22 11:50:16 +00:00
2000-09-30 08:49:51 +00:00
2000-09-30 09:40:56 +00:00
2000-09-30 08:53:27 +00:00
2000-10-16 08:09:57 +00:00
2000-05-07 14:55:15 +00:00
2000-05-20 22:06:38 +00:00
2000-05-12 22:38:58 +00:00
2000-10-22 07:33:21 +00:00
2000-05-20 22:06:38 +00:00
2000-05-07 14:55:15 +00:00
2000-05-07 14:56:12 +00:00
2000-08-05 10:56:12 +00:00
2000-05-11 07:24:05 +00:00
2000-05-07 14:57:24 +00:00
2000-05-20 22:06:38 +00:00
2000-05-07 14:57:52 +00:00
2000-08-08 07:13:36 +00:00
2000-10-16 08:10:58 +00:00
2000-05-13 06:49:53 +00:00
2000-07-30 16:34:48 +00:00
2000-05-07 14:57:52 +00:00
2000-10-22 14:19:52 +00:00
2000-10-28 11:49:52 +00:00
2000-05-11 07:21:33 +00:00
2000-10-22 07:20:24 +00:00
1998-06-29 16:24:01 +00:00
2000-05-20 22:06:38 +00:00
2000-07-17 20:07:33 +00:00
2000-08-07 16:50:11 +00:00
2000-06-24 07:37:55 +00:00
2000-07-09 07:14:42 +00:00
2000-09-08 09:01:32 +00:00
2000-04-19 15:36:05 +00:00
1998-06-29 15:57:45 +00:00
2000-05-20 22:06:38 +00:00
2000-08-06 15:08:29 +00:00
2000-08-14 21:40:30 +00:00
2000-05-07 14:46:33 +00:00
2000-07-30 16:01:48 +00:00
2000-08-11 09:12:05 +00:00
2000-05-11 07:21:33 +00:00
2000-08-23 16:26:39 +00:00
2000-05-11 07:24:05 +00:00
2000-05-07 14:46:33 +00:00
2000-05-20 22:06:38 +00:00
2000-06-20 06:46:28 +00:00
2000-05-07 14:46:33 +00:00
2000-05-07 14:46:33 +00:00
2000-08-11 09:20:31 +00:00
2000-05-07 14:46:33 +00:00
2000-05-07 14:46:33 +00:00
2000-09-29 21:40:38 +00:00