Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/loginutils/vlock.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/loginutils/vlock.c
r3232 r3621 14 14 */ 15 15 /* 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 17 31 18 32 //usage:#define vlock_trivial_usage … … 105 119 pw->pw_name 106 120 ); 107 if ( correct_password(pw)) {121 if (ask_and_check_password(pw) > 0) { 108 122 break; 109 123 }
Note:
See TracChangeset
for help on using the changeset viewer.