//child
dup2(old_stdout, STDOUT_FILENO);
execvp(*watched_argv, watched_argv);
- bb_perror_msg_and_die(*watched_argv);
+ bb_perror_msg_and_die("%s", *watched_argv);
} else {
bb_perror_msg_and_die("vfork");
}
}
}
if (!(opt & OPT_q))
- bb_perror_msg(arg);
+ bb_perror_msg("%s", arg);
return EXIT_FAILURE;
}
}
execvp(argv[1], argv + 1);
- bb_perror_msg_and_die(argv[1]);
+ bb_perror_msg_and_die("%s", argv[1]);
}
/* R_OK is needed for verifying */
if (stat(*argv,&st) < 0 || access(*argv,W_OK | R_OK ) < 0) {
- bb_perror_msg_and_die(*argv);
+ bb_perror_msg_and_die("%s",*argv);
}
if (!S_ISBLK(st.st_mode)) {
bb_error_msg_and_die("%s: not a block device",*argv);