]> granicus.if.org Git - sudo/commitdiff
In check_input() when switch()ing on the return value of read(),
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 4 May 2017 18:25:51 +0000 (12:25 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 4 May 2017 18:25:51 +0000 (12:25 -0600)
use the default label instead of 1 for the success case.  It is
only reading a single byte so the two are equivalent but it reads
better using default.

plugins/sudoers/sudoreplay.c

index 6f83c3255905ec44facbbecfe8488a465dc63723..11e24e9f91b88e8d5a9b5638f046dacb28dbdb02 100644 (file)
@@ -1136,7 +1136,7 @@ check_input(int fd, int what, void *v)
        case 0:
            /* Ignore EOF. */
            break;
-       case 1:
+       default:
            if (paused) {
                /* Any key will unpause, event is finished. */
                /* XXX - pause time could be less than timeout */