Page MenuHomeFreeBSD

tr(1): Capsicumify
ClosedPublic

Authored by cem on Sep 18 2016, 9:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 10, 4:24 PM
Unknown Object (File)
Sun, May 3, 6:01 PM
Unknown Object (File)
Mon, Apr 27, 2:57 PM
Unknown Object (File)
Tue, Apr 21, 10:37 PM
Unknown Object (File)
Sun, Apr 19, 9:28 PM
Unknown Object (File)
Sun, Apr 19, 5:25 PM
Unknown Object (File)
Apr 18 2026, 8:20 AM
Unknown Object (File)
Apr 17 2026, 12:09 PM
Subscribers

Details

Summary

This is a straightforward single input, single output program for
capsicum.

Test Plan
  • tr abc ddd (tty input)
  • echo abcdef | tr abc ddd
  • echo abcdef | LANG=ko_KR.UTF-8 tr "[:lower:]" "[:upper:]"

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cem retitled this revision from to tr(1): Capsicumify.
cem updated this object.
cem edited the test plan for this revision. (Show Details)
cem added reviewers: allanjude, emaste, ache.

What about stderr?
for stdin you probably want to check EBADF because STDIN can be closed

bapt added a reviewer: bapt.
This revision is now accepted and ready to land.Sep 18 2016, 4:38 PM
In D7928#164224, @bapt wrote:

What about stderr?

Sure.

for stdin you probably want to check EBADF because STDIN can be closed

I guess it *can* be closed. But that's kind of a silly thing for someone to do before executing tr. Do we care?

cem edited edge metadata.

Restrict stderr too.

This revision now requires review to proceed.Sep 18 2016, 5:29 PM
bapt edited edge metadata.
This revision is now accepted and ready to land.Sep 18 2016, 5:41 PM
This revision was automatically updated to reflect the committed changes.