Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/uuencode/uuencode.c
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | if (outfile != NULL) { | ||||
cap_rights_init(&out_rights, CAP_FSTAT | CAP_WRITE | CAP_SEEK ); | cap_rights_init(&out_rights, CAP_FSTAT | CAP_WRITE | CAP_SEEK ); | ||||
if (cap_rights_limit( output->_file, &out_rights )) | if (cap_rights_limit( output->_file, &out_rights )) | ||||
err(1, "unable to limit rights for %s", outfile); | err(1, "unable to limit rights for %s", outfile); | ||||
} else | } else | ||||
output = stdout; | output = stdout; | ||||
if (caph_limit_stdio() != 0) | if (caph_limit_stdio() != 0) | ||||
errx(1, "Failed to limit std{in,out,err}"); | errx(1, "Failed to limit stdio"); | ||||
emaste: maybe just "Failed to limit stdio"? | |||||
if (cap_enter() < 0 && errno != ENOSYS) | if (cap_enter() < 0 && errno != ENOSYS) | ||||
err(1, "unable to enter capability mode"); | err(1, "unable to enter capability mode"); | ||||
if (base64) | if (base64) | ||||
base64_encode(); | base64_encode(); | ||||
else | else | ||||
encode(); | encode(); | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |
maybe just "Failed to limit stdio"?