- while ((opt = getopt(argc, argv, "m:")) > 0) {
- if (opt == 'm') {
- mode = 0666;
- if (bb_parse_mode(optarg, &mode)) {
- umask(0);
- continue;
- }
- }
- bb_show_usage();
+ getopt32(argc, argv, "m:", &smode);
+ if(smode) {
+ if (bb_parse_mode(smode, &mode))
+ umask(0);