aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ubi_attach_detach.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/ubi_attach_detach.c')
-rw-r--r--miscutils/ubi_attach_detach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/ubi_attach_detach.c b/miscutils/ubi_attach_detach.c
index 0d63a10d5..18ffd4df2 100644
--- a/miscutils/ubi_attach_detach.c
+++ b/miscutils/ubi_attach_detach.c
@@ -1,6 +1,6 @@
1/* Ported to busybox from mtd-utils. 1/* Ported to busybox from mtd-utils.
2 * 2 *
3 * Licensed under GPLv2, see file LICENSE in this tarball for details. 3 * Licensed under GPLv2, see file LICENSE in this source tree.
4 */ 4 */
5 5
6//applet:IF_UBIATTACH(APPLET_ODDNAME(ubiattach, ubi_attach_detach, _BB_DIR_USR_SBIN, _BB_SUID_DROP, ubiattach)) 6//applet:IF_UBIATTACH(APPLET_ODDNAME(ubiattach, ubi_attach_detach, _BB_DIR_USR_SBIN, _BB_SUID_DROP, ubiattach))
@@ -63,9 +63,9 @@ int ubi_attach_detach_main(int argc UNUSED_PARAM, char **argv)
63 ubi_ctrl = argv[optind]; 63 ubi_ctrl = argv[optind];
64 64
65 fd = xopen(ubi_ctrl, O_RDWR); 65 fd = xopen(ubi_ctrl, O_RDWR);
66 //fstat(fd, &st); 66 //xfstat(fd, &st, ubi_ctrl);
67 //if (!S_ISCHR(st.st_mode)) 67 //if (!S_ISCHR(st.st_mode))
68 // bb_error_msg_and_die("'%s' is not a char device", ubi_ctrl); 68 // bb_error_msg_and_die("%s: not a char device", ubi_ctrl);
69 69
70 if (do_attach) { 70 if (do_attach) {
71 if (!(opts & OPTION_M)) 71 if (!(opts & OPTION_M))