#include <stdio.h>
#include <errno.h>
+#include <getopt.h>
#include <pwd.h>
/*struct passwd *getpwnam();*/
&& (freopen (outname, "w", stdout) == NULL
|| chmod (outname, mode & (S_IRWXU | S_IRWXG | S_IRWXO))
)) {
- errorMsg("uudeoce %s: %s %s\n", outname, inname, strerror(errno)); /* */
+ errorMsg("%s: %s %s\n", outname, inname, strerror(errno)); /* */
return FALSE;
}
return read_stduu (inname);
}
-static const char uudecode_usage[] =
- "uudecode [FILE]...\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nUudecode a file that is uuencoded.\n\n"
- "Options:\n"
- "\t-o FILE\tdirect output to FILE\n"
-#endif
-;
-
int uudecode_main (int argc,
char **argv)
{
if (decode (argv[optind], outname) != 0)
exit_status = FALSE;
} else {
- errorMsg("uudecode: %s: %s\n", argv[optind], strerror(errno));
+ errorMsg("%s: %s\n", argv[optind], strerror(errno));
exit_status = FALSE;
}
optind++;