Samanta Navarro
0c83b98105
Read whole line in yes_or_no
...
Do not stop after 79 characters. Read the complete line to avoid
arbitrary limitations.
Proof of Concept:
```
cat > passwd-poc << EOF
root❌ 0:0:root:/root:/bin/bash
root❌ 0:0:root:/root:/bin/bash
root❌ 0:0:root:/root:/bin/bash
EOF
python -c "print(80*'y')" | pwck passwd-poc
```
Two lines should still be within the file because we agreed only once
to remove a duplicated line.
Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
2023-04-21 18:12:56 -05:00
..
2007-10-07 14:36:51 +00:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2023-03-27 10:10:37 -05:00
2023-01-30 18:24:15 +01:00
2022-08-06 11:27:56 -05:00
2022-09-02 20:27:14 -05:00
2021-12-23 19:36:50 -06:00
2022-08-17 12:34:01 -05:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-16 13:23:08 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-01-30 18:24:15 +01:00
2023-03-28 13:00:38 +02:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2022-12-22 10:31:43 +01:00
2023-02-23 20:28:43 -06:00
2022-12-22 11:43:29 +01:00
2022-12-22 11:43:29 +01:00
2023-02-23 20:28:43 -06:00
2021-12-23 19:36:50 -06:00
2021-12-29 02:41:09 +01:00
2023-02-09 10:03:03 -06:00
2022-08-06 11:27:56 -05:00
2023-03-20 08:47:52 +01:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2022-08-06 11:27:56 -05:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-16 11:29:33 +01:00
2023-02-23 20:28:43 -06:00
2021-12-23 19:36:50 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2022-12-22 11:43:29 +01:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2022-12-15 16:22:05 -06:00
2023-02-02 13:08:30 -06:00
2022-08-17 12:34:01 -05:00
2022-12-15 16:22:05 -06:00
2022-08-06 15:04:06 -05:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-02-23 20:28:43 -06:00
2023-02-02 13:08:30 -06:00
2023-02-16 11:29:33 +01:00
2023-02-16 11:29:33 +01:00
2022-12-22 10:39:45 -06:00
2021-12-23 19:36:50 -06:00
2023-02-02 13:08:30 -06:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2022-12-15 16:22:05 -06:00
2023-02-16 13:23:08 -06:00
2023-03-28 13:00:38 +02:00
2021-12-23 19:36:50 -06:00
2023-02-16 13:23:08 -06:00
2023-02-16 13:23:08 -06:00
2023-01-26 22:44:39 -06:00
2023-02-16 13:23:08 -06:00
2023-02-16 13:23:08 -06:00
2023-02-23 20:28:43 -06:00
2023-04-21 18:12:56 -05:00