break;
case 'C':
if (strtonum(optarg, 3, INT_MAX, NULL) == 0) {
- sudo_warnx(_("the argument to -C must be a number greater than or equal to 3"));
+ sudo_warnx(U_("the argument to -C must be a number greater than or equal to 3"));
usage(1);
}
sudo_settings[ARG_CLOSEFROM].value = optarg;
/* Restore cwd */
if (fchdir(odfd) == -1)
- sudo_fatal(_("unable to restore current working directory"));
+ sudo_fatal(U_("unable to restore current working directory"));
close(odfd);
debug_return_int(fd);
/* Restore cwd */
if (odfd != -1) {
if (fchdir(odfd) == -1)
- sudo_fatal(_("unable to restore current working directory"));
+ sudo_fatal(U_("unable to restore current working directory"));
close(odfd);
}
case SESH_SUCCESS:
break;
case SESH_ERR_BAD_PATHS:
- sudo_fatalx(_("sesh: internal error: odd number of paths"));
+ sudo_fatalx(U_("sesh: internal error: odd number of paths"));
case SESH_ERR_NO_FILES:
- sudo_fatalx(_("sesh: unable to create temporary files"));
+ sudo_fatalx(U_("sesh: unable to create temporary files"));
default:
- sudo_fatalx(_("sesh: unknown error %d"), rc);
+ sudo_fatalx(U_("sesh: unknown error %d"), rc);
}
/* Restore saved command_details. */
ret = 0;
break;
case SESH_ERR_NO_FILES:
- sudo_warnx(_("unable to copy temporary files back to their original location"));
+ sudo_warnx(U_("unable to copy temporary files back to their original location"));
sudo_warnx(U_("contents of edit session left in %s"), edit_tmpdir);
break;
case SESH_ERR_SOME_FILES:
- sudo_warnx(_("unable to copy some of the temporary files back to their original location"));
+ sudo_warnx(U_("unable to copy some of the temporary files back to their original location"));
sudo_warnx(U_("contents of edit session left in %s"), edit_tmpdir);
break;
default:
- sudo_warnx(_("sesh: unknown error %d"), rc);
+ sudo_warnx(U_("sesh: unknown error %d"), rc);
break;
}
}