Loading toolbox/ioctl.c +8 −4 Original line number Diff line number Diff line Loading @@ -63,11 +63,15 @@ int ioctl_main(int argc, char *argv[]) exit(1); } fd = open(argv[optind], O_RDWR | O_SYNC); if (!strcmp(argv[optind], "-")) { fd = STDIN_FILENO; } else { fd = open(argv[optind], read_only ? O_RDONLY : (O_RDWR | O_SYNC)); if (fd < 0) { fprintf(stderr, "cannot open %s\n", argv[optind]); return 1; } } optind++; ioctl_nr = strtol(argv[optind], NULL, 0); Loading Loading
toolbox/ioctl.c +8 −4 Original line number Diff line number Diff line Loading @@ -63,11 +63,15 @@ int ioctl_main(int argc, char *argv[]) exit(1); } fd = open(argv[optind], O_RDWR | O_SYNC); if (!strcmp(argv[optind], "-")) { fd = STDIN_FILENO; } else { fd = open(argv[optind], read_only ? O_RDONLY : (O_RDWR | O_SYNC)); if (fd < 0) { fprintf(stderr, "cannot open %s\n", argv[optind]); return 1; } } optind++; ioctl_nr = strtol(argv[optind], NULL, 0); Loading