- if (iflag && !fflag && isatty(fileno(stdin)) &&
- query("remove %s? ", target) == 0)
- return (1);
- if (access(target, 2) < 0 && !fflag && isatty(fileno(stdin))) {
- if (query("override protection %o for %s? ",
- s2.st_mode & MODEBITS, target) == 0)
+ if (!fflag && isatty(fileno(stdin)))
+ if (iflag) {
+ if (!query("remove %s? ", target))
+ return (1);
+ }
+ else if (access(target, W_OK) < 0 &&
+ !query("override protection %o for %s? ",
+ s2.st_mode & MODEBITS, target))