head(1): Add -c argument

2023-03-26 Thread Jared Harper
Hello, this is my first patch to OpenBSD. I look forward to feedback on code as well as process, communication, etc. Thank you in advance. This patch adds a -c argument to head(1). The behavior is intended to be the same as head on other systems, such as FreeBSD, NetBSD, macOS, and Linux. diff

[PATCH] Add -executable, -readable, and -writable options to /usr/bin/find

2023-03-31 Thread Jared Harper
I have put together a patch that adds -executable, -readable, and -writable to /usr/bin/find. When I first started working on this patch, I implemented the access check by checking the stat of the file like so: int is_permission(const FTSENT *entry, mode_t umode, mode_t gmode,

Re: [PATCH] Add -executable, -readable, and -writable options to /usr/bin/find

2023-04-01 Thread Jared Harper
On Sat, Apr 1, 2023 at 12:06 AM Theo Buehler wrote: > > While I agree with Solène that we don't necessarily want or need this > patch, I think it is nicely done. I myself don't find the -perm primary > very intuitive and I find its manual hard to decipher, so your patch > would save me a few