Use caph_limit_stdio() before opening input files. This function
suppresses EBADF. When further limiting stdin, make sure STDIN_FILENO
isn't being used for one of the input files.
Fix some style bugs while here.
Differential D18860 Authored by markj on Jan 16 2019, 8:39 PM.
Tags None Referenced Files
Subscribers
Details
Summary Use caph_limit_stdio() before opening input files. This function Fix some style bugs while here.
Diff Detail
Event TimelineHarbormaster completed remote builds in B21986: Diff 52898.Jan 16 2019, 8:39 PM2019-01-16 20:39:13 (UTC+0)
Comment Actions
Harbormaster completed remote builds in B21987: Diff 52900.Jan 16 2019, 9:57 PM2019-01-16 21:57:56 (UTC+0)
Harbormaster completed remote builds in B22002: Diff 52928.Jan 17 2019, 4:02 PM2019-01-17 16:02:57 (UTC+0) This revision is now accepted and ready to land.Jan 17 2019, 5:09 PM2019-01-17 17:09:28 (UTC+0) Closed by commit rS343117: Fix handling of rights on stdio streams. (authored by markj). · Explain WhyJan 17 2019, 5:36 PM2019-01-17 17:36:28 (UTC+0) This revision was automatically updated to reflect the committed changes. Herald added a subscriber: imp. · View Herald TranscriptJan 17 2019, 5:36 PM2019-01-17 17:36:29 (UTC+0)
Revision Contents
Diff 52900 usr.bin/cmp/cmp.c
|
It'd be helpful to have a comment indicating that this is a shadow of the max_pstreams field of epctx0.