Commit Graph

34 Commits (master)

Author SHA1 Message Date
Tim Kuijsten 4763032430 pledge(2) all programs
All programs except mshow have a very tight set of promises. mshow
has a broad set of promises and might be a good future candidate
to further restrict using unveil(2).

This patch is based on commit 0300a112 by Alex Holst (dated
2017-12-07), which was proposed in GH PR #79.

* pledged mpick, mflow and mdate so that now all programs are pledged
* removed some unneeded promises and added some missing promises
* move err.h include and OpenBSD ifdef into a new xpledge.h
* cleaned up code aligning and whitespace

Closes: #179 [via git-merge-pr]
4 years ago
Leah Neukirchen 74857db199 mseq: reinitialize iter for each command line argument
Fixes #181.
4 years ago
Leah Neukirchen 8d611a8a3d mseq: extract DT_* handling, follow symlinks 4 years ago
Leah Neukirchen ed16bee191 mseq: create tmpfile O_EXCL to detect multiple mseq -S in a pipeline 6 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Leah Neukirchen 4c592759a2 mseq: use first message of range for -c and -C. 7 years ago
Duncaen 880f084177 mseq: remove the ,2: suffix from the file we search for and add testcase
This fixes #38

Closes: #39 [via git-merge-pr]
7 years ago
Leah Neukirchen ba736b0735 mseq: better error reporting 7 years ago
Leah Neukirchen 2b4e3aa66d clean up whitespace 7 years ago
Christian Neukirchen 472a74b75b use getdelim instead of getline
Avoids weird macros to build on FreeBSD.
8 years ago
Ivy Foster ca8cef1660 Add $MBLAZE environment variable to set profile location
As a side benefit, all callers of blaze822_home_file need only pass
the filename, so the base directory is set in only one place.
8 years ago
Christian Neukirchen d233737be4 mseq: setcur: unset MAILDOT, because with -C we really want to force setting cur 8 years ago
Christian Neukirchen b8631d13ff mseq: allow message syntax in -c 8 years ago
Christian Neukirchen f34a284b42 mseq: add -c to override . 8 years ago
Christian Neukirchen 41474c2e68 rename .santoku to .mblaze 8 years ago
Christian Neukirchen 94c7dd24cf mseq: drop -n (now in mscan) 8 years ago
Christian Neukirchen ddf275fa83 mseq: deal with indentation in -C 8 years ago
Christian Neukirchen 444674ecbc mseq: don't cast function pointers 8 years ago
Christian Neukirchen 3d694808eb mseq: add usage 8 years ago
Christian Neukirchen 5d9663a980 guard DT_* usage
It's a shortcut anyway, just leave it out
8 years ago
Christian Neukirchen 699c322aea mseq: keep indentation with -f 8 years ago
Christian Neukirchen 56c62599fc mseq: resolve message syntax for -C 8 years ago
Christian Neukirchen e25dfa5554 mseq: -C to set the current message 8 years ago
Christian Neukirchen 2b81707c51 rename map to seq
The old terminology didn't make much sense to users.
8 years ago
Christian Neukirchen aee85d20d9 mseq: add -S/-A to set/append the sequence 8 years ago
Christian Neukirchen fb1a3afb64 mseq: add -f to fix sequences 8 years ago
Christian Neukirchen 5f98374464 mseq: -r to strip indentation 8 years ago
Christian Neukirchen 70a3a2ff1d mseq: default to all messages when interactive w/o args 8 years ago
Christian Neukirchen 181fcb5d70 mseq: pass through file names 8 years ago
Christian Neukirchen 30b94679d6 mseq: -n to expand ranges 8 years ago
Christian Neukirchen 22f456a2a0 clean up header includes 8 years ago
Christian Neukirchen 08032f89ba seq: import most parts of mseq, make blaze822_loop resolve ranges 8 years ago
Christian Neukirchen 796531b22d mseq: extract code into seq.c 8 years ago
Christian Neukirchen aa62c73700 add mseq (replaces next) 8 years ago