diff options
author | Denis Vlasenko | 2007-05-08 17:52:17 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-05-08 17:52:17 +0000 |
commit | 7e84e539de530b2060f0e570fc8f063ed0aaad2f (patch) | |
tree | c03518f2059504a513119cf4d499ccf5c7233f83 /libbb | |
parent | 92c0b8222eb50dd35c06e2f1265706b388762234 (diff) | |
download | busybox-7e84e539de530b2060f0e570fc8f063ed0aaad2f.zip busybox-7e84e539de530b2060f0e570fc8f063ed0aaad2f.tar.gz |
cryptpw: new applet (a bit less than 3k added)
(by Thomas Lundquist <lists@zelow.no>)
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/Kbuild | 4 | ||||
-rw-r--r-- | libbb/chomp.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libbb/Kbuild b/libbb/Kbuild index 4e6eec3..eeca7d5 100644 --- a/libbb/Kbuild +++ b/libbb/Kbuild @@ -21,6 +21,7 @@ lib-y += copyfd.o lib-y += crc32.o lib-y += create_icmp6_socket.o lib-y += create_icmp_socket.o +lib-y += crypt_make_salt.o lib-y += default_error_retval.o lib-y += device_open.o lib-y += dump.o @@ -103,6 +104,9 @@ lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o lib-$(CONFIG_LOSETUP) += loop.o lib-$(CONFIG_FEATURE_MTAB_SUPPORT) += mtab.o lib-$(CONFIG_PASSWD) += pw_encrypt.o +lib-$(CONFIG_PASSWD) += crypt_make_salt.o +lib-$(CONFIG_CRYPTPW) += pw_encrypt.o +lib-$(CONFIG_CRYPTPW) += crypt_make_salt.o lib-$(CONFIG_SULOGIN) += pw_encrypt.o lib-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) += pw_encrypt.o lib-$(CONFIG_VLOCK) += correct_password.o diff --git a/libbb/chomp.c b/libbb/chomp.c index eab7707..8ffaff5 100644 --- a/libbb/chomp.c +++ b/libbb/chomp.c @@ -15,5 +15,5 @@ void chomp(char *s) char *lc = last_char_is(s, '\n'); if (lc) - *lc = 0; + *lc = '\0'; } |