diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-27 23:31:59 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-27 23:31:59 +0000 |
commit | ede88e7a5065cac3e03d4d34c83d0dfa414453b4 (patch) | |
tree | 59add578b824dd91330e04ccd52256ec9d6144fb | |
parent | 6f51fea61200dc423e34bbdefa86b7101a221a35 (diff) | |
download | busybox-w32-ede88e7a5065cac3e03d4d34c83d0dfa414453b4.tar.gz busybox-w32-ede88e7a5065cac3e03d4d34c83d0dfa414453b4.tar.bz2 busybox-w32-ede88e7a5065cac3e03d4d34c83d0dfa414453b4.zip |
usage.h: fix compile-time bugs exposed by previous change
git-svn-id: svn://busybox.net/trunk/busybox@16243 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | include/usage.h | 15 | ||||
-rw-r--r-- | libbb/pw_encrypt.c | 4 |
2 files changed, 8 insertions, 11 deletions
diff --git a/include/usage.h b/include/usage.h index db608003d..3c9744623 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -412,17 +412,17 @@ USE_FEATURE_DATE_ISOFMT( \ | |||
412 | #define deallocvt_trivial_usage \ | 412 | #define deallocvt_trivial_usage \ |
413 | "[N]" | 413 | "[N]" |
414 | #define deallocvt_full_usage \ | 414 | #define deallocvt_full_usage \ |
415 | "Deallocate unused virtual terminal /dev/ttyN" | 415 | "Deallocate unused virtual terminal /dev/ttyN" |
416 | 416 | ||
417 | #define delgroup_trivial_usage \ | 417 | #define delgroup_trivial_usage \ |
418 | "GROUP" | 418 | "GROUP" |
419 | #define delgroup_full_usage \ | 419 | #define delgroup_full_usage \ |
420 | "Deletes group GROUP from the system" | 420 | "Deletes group GROUP from the system" |
421 | 421 | ||
422 | #define deluser_trivial_usage \ | 422 | #define deluser_trivial_usage \ |
423 | "USER" | 423 | "USER" |
424 | #define deluser_full_usage \ | 424 | #define deluser_full_usage \ |
425 | "Deletes user USER from the system" | 425 | "Deletes user USER from the system" |
426 | 426 | ||
427 | #define devfsd_trivial_usage \ | 427 | #define devfsd_trivial_usage \ |
428 | "mntpnt [-v]" \ | 428 | "mntpnt [-v]" \ |
@@ -2146,8 +2146,7 @@ USE_FEATURE_MDEV_CONFIG( \ | |||
2146 | "changes the password for the current user.\n" \ | 2146 | "changes the password for the current user.\n" \ |
2147 | "Options:\n" \ | 2147 | "Options:\n" \ |
2148 | "\t-a\tDefine which algorithm shall be used for the password\n" \ | 2148 | "\t-a\tDefine which algorithm shall be used for the password\n" \ |
2149 | "\t\t\t(Choices: des, md5" \ | 2149 | "\t\t\t(Choices: des, md5, sha1)\n" \ |
2150 | USE_FEATURE_SHA1_PASSWORDS(", sha1") ")\n" \ | ||
2151 | "\t-d\tDelete the password for the specified user account\n" \ | 2150 | "\t-d\tDelete the password for the specified user account\n" \ |
2152 | "\t-l\tLocks (disables) the specified user account\n" \ | 2151 | "\t-l\tLocks (disables) the specified user account\n" \ |
2153 | "\t-u\tUnlocks (re-enables) the specified user account" | 2152 | "\t-u\tUnlocks (re-enables) the specified user account" |
@@ -2408,9 +2407,9 @@ USE_FEATURE_MDEV_CONFIG( \ | |||
2408 | #define route_full_usage \ | 2407 | #define route_full_usage \ |
2409 | "Edit the kernel's routing tables.\n\n" \ | 2408 | "Edit the kernel's routing tables.\n\n" \ |
2410 | "Options:\n" \ | 2409 | "Options:\n" \ |
2411 | "\t-n\t\tDont resolve names\n" \ | 2410 | "\t-n\tDont resolve names\n" \ |
2412 | "\t-e\t\tDisplay other/more information\n" \ | 2411 | "\t-e\tDisplay other/more information\n" \ |
2413 | "\t-A inet" USE_FEATURE_ROUTE_IPV6("{6}") "\tSelect address family" | 2412 | "\t-A inet" USE_FEATURE_IPV6("{6}") "\tSelect address family" |
2414 | 2413 | ||
2415 | #define rpm_trivial_usage \ | 2414 | #define rpm_trivial_usage \ |
2416 | "-i -q[ildc]p package.rpm" | 2415 | "-i -q[ildc]p package.rpm" |
diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c index d6b2fe28d..f6085f3d2 100644 --- a/libbb/pw_encrypt.c +++ b/libbb/pw_encrypt.c | |||
@@ -11,13 +11,12 @@ | |||
11 | #include <string.h> | 11 | #include <string.h> |
12 | #include <crypt.h> | 12 | #include <crypt.h> |
13 | 13 | ||
14 | |||
15 | char *pw_encrypt(const char *clear, const char *salt) | 14 | char *pw_encrypt(const char *clear, const char *salt) |
16 | { | 15 | { |
17 | static char cipher[128]; | 16 | static char cipher[128]; |
18 | char *cp; | 17 | char *cp; |
19 | 18 | ||
20 | #ifdef CONFIG_FEATURE_SHA1_PASSWORDS | 19 | #if 0 /* was CONFIG_FEATURE_SHA1_PASSWORDS, but there is no such thing??? */ |
21 | if (strncmp(salt, "$2$", 3) == 0) { | 20 | if (strncmp(salt, "$2$", 3) == 0) { |
22 | return sha1_crypt(clear); | 21 | return sha1_crypt(clear); |
23 | } | 22 | } |
@@ -29,4 +28,3 @@ char *pw_encrypt(const char *clear, const char *salt) | |||
29 | safe_strncpy(cipher, cp, sizeof(cipher)); | 28 | safe_strncpy(cipher, cp, sizeof(cipher)); |
30 | return cipher; | 29 | return cipher; |
31 | } | 30 | } |
32 | |||