Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/loginutils/vlock.c

    r3232 r3621  
    1414 */
    1515/* Fixed by Erik Andersen to do passwords the tinylogin way...
    16  * It now works with md5, sha1, etc passwords. */
     16 * It now works with md5, sha1, etc passwords.
     17 */
     18//config:config VLOCK
     19//config:   bool "vlock"
     20//config:   default y
     21//config:   help
     22//config:     Build the "vlock" applet which allows you to lock (virtual) terminals.
     23//config:
     24//config:     Note that Busybox binary must be setuid root for this applet to
     25//config:     work properly.
     26
     27//applet:/* Needs to be run by root or be suid root - needs to change uid and gid: */
     28//applet:IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
     29
     30//kbuild:lib-$(CONFIG_VLOCK) += vlock.o
    1731
    1832//usage:#define vlock_trivial_usage
     
    105119                pw->pw_name
    106120        );
    107         if (correct_password(pw)) {
     121        if (ask_and_check_password(pw) > 0) {
    108122            break;
    109123        }
Note: See TracChangeset for help on using the changeset viewer.