]> git.wh0rd.org - sysvinit.git/commitdiff
Sulogin: respect byte order that is do not mix chars and ints
authorDr. Werner Fink <werner@suse.de>
Wed, 27 Jul 2011 10:49:05 +0000 (10:49 +0000)
committerDr. Werner Fink <werner@suse.de>
Wed, 27 Jul 2011 10:49:05 +0000 (10:49 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@109 456724a4-4300-0410-8514-c89748c515a2

doc/Changelog
src/sulogin.c

index 435e6246a7141981d913124381b306b5b1ef3a7b..feb79c56565e49c2c30f2758d96914137fd7b8fe 100644 (file)
@@ -31,6 +31,7 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low
   * Sulogin: enforce reconnection of stdin/stdout/stderr if a device
     was specified.
   * Sulogin: if zero is read at reading the passwd guess it's done.
+  * Sulogin: respect byte order that is do not mix chars and ints
 
   [ Petter Reinholdtsen ]
   * Next release will be 2.89dsf.
index 70fa3348a44195d477d07c0986f90aa87fd5cd5f..45f5f5f5ce838c6883d21b0db4faa1705ebd485b 100644 (file)
@@ -613,9 +613,9 @@ char *getpasswd(struct console *con)
        struct termios tty;
        char *ret = pass;
        unsigned char tc;
-       char ascval;
+       char c, ascval;
        int eightbit;
-       int c, fd;
+       int fd;
 
        if (con->flags & CON_NOTTY)
                goto out;