Oscar Bonilla
c923f6ac3b
Fix off-by-one bug
...
This is a fix for https://github.com/docker/for-linux/issues/1012 .
The code was not considering that C strings are NULL-terminated so
we need to leave one extra byte.
Without this fix, the testcase in https://github.com/docker/for-linux/issues/1012
fails with
```
Step 61/1001 : RUN echo 60 > 60
---> Running in dde85ac3b1e3
Removing intermediate container dde85ac3b1e3
---> 80a12a18a241
Step 62/1001 : RUN echo 61 > 61
error creating overlay mount to /23456789112345678921234/overlay2/d368abcc97d6c6ebcf23fa71225e2011d095295d5d8c9b31d6810bea748bdf07-init/merged: no such file or directory
```
with the output of `dmesg -T` as:
```
[Sat Dec 19 02:35:40 2020] overlayfs: failed to resolve '/23456789112345678921234/overlay2/89e435a1b24583c463abb73e8abfad8bf8a88312ef8253455390c5fa0a765517-init/wor': -2
```
with this fix, you get the expected:
```
Step 126/1001 : RUN echo 125 > 125
---> Running in 2f2e56da89e0
max depth exceeded
```
Signed-off-by: Oscar Bonilla <6f6231@gmail.com >
2020-12-20 16:23:25 -08:00
..
2020-12-15 14:45:05 -06:00
2020-11-05 16:18:23 +01:00
2020-02-11 00:06:42 +01:00
2019-11-27 15:43:53 +01:00
2019-06-21 12:02:15 -04:00
2020-12-20 16:23:25 -08:00
2020-11-05 20:02:18 +00:00
2018-08-13 21:59:11 -07:00
2019-11-27 15:43:53 +01:00
2020-09-14 14:50:54 +02:00
2020-10-29 18:38:30 +00:00
2020-10-30 21:17:34 +01:00
2020-07-08 14:22:04 +02:00
2020-04-14 17:22:19 +02:00
2018-08-13 21:59:11 -07:00
2018-08-13 21:59:11 -07:00
2018-04-19 06:35:54 -04:00
2020-04-14 17:22:23 +02:00
2020-04-29 00:28:41 +02:00
2018-04-23 13:52:44 -07:00
2019-10-17 23:49:43 +02:00
2019-09-18 12:57:22 +02:00
2018-06-27 17:11:29 -07:00
2019-10-17 23:49:43 +02:00
2020-04-14 17:22:19 +02:00
2020-09-23 10:30:53 +02:00
2019-09-03 10:51:43 +02:00
2020-10-30 21:17:34 +01:00
2020-02-11 00:06:42 +01:00
2020-04-14 17:22:19 +02:00
2020-07-27 10:09:42 -07:00
2020-11-05 20:02:18 +00:00
2020-02-11 00:06:42 +01:00
2020-02-04 10:12:05 -08:00
2019-06-07 11:54:45 +01:00
2020-10-20 20:17:23 +00:00
2020-03-20 09:46:25 -07:00
2020-04-14 17:22:23 +02:00
2020-04-29 00:28:41 +02:00
2020-04-14 17:22:23 +02:00
2020-12-07 11:59:42 +01:00
2020-04-17 07:20:01 +09:00
2020-10-29 23:00:16 +01:00
2020-12-15 15:57:39 +01:00
2020-04-14 17:22:21 +02:00
2020-04-14 17:22:21 +02:00
2020-04-14 17:22:21 +02:00
2020-02-11 00:06:42 +01:00
2019-04-25 13:08:08 -04:00
2019-03-18 17:19:45 +00:00
2018-05-25 14:21:07 -04:00
2019-03-19 21:09:19 -07:00
2020-04-14 17:22:23 +02:00
2019-08-29 07:44:39 +08:00
2020-02-11 00:06:42 +01:00
2020-09-09 13:25:59 +02:00
2019-03-12 18:41:55 -07:00
2020-04-21 16:29:27 +02:00
2020-04-14 17:22:23 +02:00
2019-10-18 00:57:56 +02:00
2020-04-14 17:22:21 +02:00
2020-02-11 00:06:42 +01:00
2020-02-11 00:06:42 +01:00
2020-07-24 20:44:29 +09:00
2019-05-07 10:22:16 -07:00
2020-09-25 00:21:54 +00:00
2020-04-14 17:22:23 +02:00
2020-02-11 00:06:42 +01:00
2020-04-14 17:22:23 +02:00
2020-08-11 21:33:59 +00:00
2020-02-11 00:06:42 +01:00
2018-08-17 17:05:21 -07:00
2020-04-14 17:22:23 +02:00
2020-05-21 11:33:27 -07:00
2020-02-19 17:02:34 -05:00
2020-02-19 17:02:34 -05:00
2020-04-14 17:22:23 +02:00
2020-04-20 22:19:00 +02:00
2020-04-14 17:22:21 +02:00
2020-11-14 15:23:29 -08:00
2018-05-25 14:21:07 -04:00
2019-06-07 11:54:45 +01:00
2019-09-18 12:55:46 +02:00
2020-04-14 17:22:23 +02:00
2019-09-18 12:56:54 +02:00
2020-12-15 09:47:44 +07:00
2020-11-09 15:00:32 +01:00
2019-09-18 12:56:54 +02:00
2020-02-11 00:06:42 +01:00
2020-07-27 10:09:42 -07:00
2020-04-14 17:22:23 +02:00
2020-07-28 12:41:14 +02:00
2020-02-11 00:06:42 +01:00
2020-07-09 15:41:44 -07:00
2019-09-19 13:51:40 +02:00
2018-09-21 09:43:06 +08:00
2020-02-11 00:06:42 +01:00
2019-06-07 13:16:46 +02:00
2020-04-14 17:22:23 +02:00
2020-07-15 14:06:21 +09:00
2019-10-13 19:16:31 +02:00
2020-09-09 18:23:27 +01:00
2019-10-13 19:16:31 +02:00
2019-09-18 12:56:54 +02:00
2020-11-09 15:00:32 +01:00
2020-07-13 14:18:02 -07:00
2020-11-06 04:55:03 +00:00
2020-04-16 20:57:06 +02:00
2018-05-03 10:04:33 -07:00
2020-02-11 00:06:42 +01:00
2020-04-14 17:22:23 +02:00
2019-09-18 12:56:54 +02:00
2020-02-11 00:06:42 +01:00
2019-08-08 15:05:49 +02:00
2020-04-14 17:22:23 +02:00
2019-09-18 12:56:54 +02:00
2019-03-12 18:41:55 -07:00
2020-04-14 17:22:23 +02:00
2020-07-13 14:18:02 -07:00
2020-04-14 17:22:23 +02:00
2018-08-09 00:45:00 +09:00
2018-04-19 06:35:54 -04:00
2018-04-19 06:35:54 -04:00
2020-04-14 17:22:23 +02:00
2018-08-13 21:59:11 -07:00
2020-06-29 13:28:14 +02:00
2018-04-23 13:52:44 -07:00
2018-08-13 21:59:11 -07:00