lineedit: do not hang on error, but return error indicator.
[oweals/busybox.git] / loginutils / cryptpw.c
index 4eec02b7831a783b973adfd659afdb2854bf4808..f32cbceb9d92dcff5029c2e6064de0fcc0b81b99 100644 (file)
@@ -2,10 +2,12 @@
 /*
  * cryptpw.c - output a crypt(3)ed password to stdout.
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  *
  * Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no>
  * mkpasswd compatible options added by Bernhard Reutner-Fischer
+ *
+ * Licensed under GPLv2, see file LICENSE in this source tree.
  */
 
 #include "libbb.h"
@@ -58,7 +60,7 @@ int cryptpw_main(int argc UNUSED_PARAM, char **argv)
        int len;
        int fd;
 
-#if ENABLE_GETOPT_LONG
+#if ENABLE_LONG_OPTS
        static const char mkpasswd_longopts[] ALIGN1 =
                "stdin\0"       No_argument       "s"
                "password-fd\0" Required_argument "P"