cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.55k stars 190 forks source link

Logging option is prompted before elevating to sudo, causing two logging prompts #61

Closed wesinator closed 5 years ago

wesinator commented 5 years ago

Ubuntu 18.04 Bionic testdisk (7.0-3build2) TestDisk 7.0 GCC 7.2

Selecting "No Log" option, logging option is asked twice.

To reproduce:

cgsecurity commented 5 years ago

I am unable to reproduce the problem with Linux 7.0 and 7.1-WIP binaries from https://www.cgsecurity.org by using the arrow keys and the enter key. Can you check with these binaries ?

wesinator commented 5 years ago

I can't reproduce with those versions either.

wesinator commented 5 years ago

So it seems this happens when running as testdisk with SUDO_BIN configured. The program asks for logging option before elevating to sudo, then again as sudo.

Expected: elevate, then ask for logging option