Page MenuHomeFreeBSD
Feed Search

Jul 17 2022

pstef retitled D35836: sh: accept fc options grouped behind one '-' from sh: accept options grouped behind one '-'
Jul 17 2022, 10:20 AM
pstef requested review of D35836: sh: accept fc options grouped behind one '-'.
Jul 17 2022, 8:23 AM

Jul 16 2022

pstef accepted D35807: libc: Add `strverscmp(3)` & `versionsort(3)`.

I accept this revision. I don't mind declarations after statements, but others might.

Jul 16 2022, 5:06 PM
pstef accepted D35807: libc: Add `strverscmp(3)` & `versionsort(3)`.
Jul 16 2022, 7:30 AM
pstef added inline comments to D35807: libc: Add `strverscmp(3)` & `versionsort(3)`.
Jul 16 2022, 7:30 AM

Jul 15 2022

pstef added inline comments to D35807: libc: Add `strverscmp(3)` & `versionsort(3)`.
Jul 15 2022, 4:21 PM

Jul 14 2022

pstef added inline comments to D35807: libc: Add `strverscmp(3)` & `versionsort(3)`.
Jul 14 2022, 6:03 PM

Jul 12 2022

pstef updated the diff for D35761: libc: expose a primitive version of b64_pton().

Fix the Symbols.map part of this diff.

Jul 12 2022, 5:32 PM
pstef added a comment to D35783: ls: `-v` flag (and `strverscmp(3)` & `versionsort(3)`).
In D35783#812077, @obiwac_gmail.com wrote:
Jul 12 2022, 3:34 PM
pstef added a comment to D35783: ls: `-v` flag (and `strverscmp(3)` & `versionsort(3)`).

Looks interesting. However, personally I would like to see these two ideas (the new libc function and the new ls(1) option) have their separate reviews and ultimately commits. See also my inline comments.

Jul 12 2022, 3:06 PM

Jul 11 2022

pstef added inline comments to D35776: vtspeakd(1): Initial version of console speaker daemon..
Jul 11 2022, 6:51 PM
pstef added inline comments to D35776: vtspeakd(1): Initial version of console speaker daemon..
Jul 11 2022, 6:50 PM
pstef added inline comments to D35776: vtspeakd(1): Initial version of console speaker daemon..
Jul 11 2022, 5:57 PM

Jul 10 2022

pstef updated the diff for D35761: libc: expose a primitive version of b64_pton().

Less buggy and visibly less invasive.

Jul 10 2022, 9:24 PM

Jul 9 2022

pstef requested review of D35761: libc: expose a primitive version of b64_pton().
Jul 9 2022, 6:10 PM

May 22 2022

pstef abandoned D35282: lang/python310: Add OPTIONS for: editline, ports editline, ports readline or none.
May 22 2022, 6:11 AM

May 21 2022

pstef added a comment to D35282: lang/python310: Add OPTIONS for: editline, ports editline, ports readline or none.

What the port does is:
$ file /usr/local/lib/libedit.so.0
/usr/local/lib/libedit.so.0: symbolic link to libedit.so.0.0.68
The port turns out to be a Debian-made repackaging of the NetBSD library.

May 21 2022, 11:49 PM
pstef added a comment to D35282: lang/python310: Add OPTIONS for: editline, ports editline, ports readline or none.

Huh, as it is, it cannot pick up the base editline at all. It's looking for /lib/libedit.so.0 and ours (well, mine) is /lib/libedit.so.8.

May 21 2022, 11:16 PM
pstef added a comment to D35282: lang/python310: Add OPTIONS for: editline, ports editline, ports readline or none.

I think I'll need to drop the "editline (ports)" option, there's no way to choose one or the other when both are installed.

May 21 2022, 11:02 PM
pstef requested review of D35282: lang/python310: Add OPTIONS for: editline, ports editline, ports readline or none.
May 21 2022, 10:52 PM

Apr 30 2022

pstef committed rGd9d0812bc6e9: sh: implement persistent history storage (authored by bapt).
Apr 30 2022, 8:05 AM
pstef committed rG963fdecd1a26: uudecode: correct error message.
Apr 30 2022, 8:05 AM
pstef committed rG2eef2f0f8f60: uu{encode,decode}: improve style.
Apr 30 2022, 8:05 AM
pstef committed rG6e1f0f800689: libfetch: remove a set-but-not-used variable (authored by se).
Apr 30 2022, 8:05 AM

Apr 24 2022

pstef committed rGed016aa43541: base64: ignore -i as promised.
Apr 24 2022, 6:25 AM
pstef committed rGaad4fd549589: Add a quoted-printable encoder/decoder.
Apr 24 2022, 6:25 AM
pstef committed rG9d68da4ee855: bintrans: make mmencode.c compilable.
Apr 24 2022, 6:25 AM
pstef committed rGff2b1ffbb045: bintrans: adjust mmencode.c to style(9).
Apr 24 2022, 6:25 AM
pstef committed rG8a65b02daca6: bintrans: import mmencode.c for quoted-printable en/de-coding.
Apr 24 2022, 6:25 AM
pstef closed D34933: Import a quoted-printable bidirectional converter.
Apr 24 2022, 6:24 AM

Apr 23 2022

pstef added a comment to D35033: bsdinstall/partedit: fix UFS auto partitioning.

Minor nit.

Apr 23 2022, 8:40 AM

Apr 22 2022

pstef added inline comments to D34762: ctld: Fix coverity raised issues.
Apr 22 2022, 1:34 PM

Apr 19 2022

pstef accepted D34941: diff3: Clean up printing of ranges for edscript output.

Maybe if the file was mmapped and the r->fromth line found via memchr() or similar, that would be faster.

Apr 19 2022, 8:32 AM

Apr 18 2022

pstef accepted D34950: diff: tests: loosen up requirements for report_identical.

I think I'm the one to blame for this, but I've never understood ATF and from other usage across our repo it wasn't clear to me how to properly do this.

Apr 18 2022, 9:41 PM
pstef committed rGd399eb3ef7f8: ping: split the visual part of -f into a new option -..
Apr 18 2022, 5:15 PM
pstef closed D34882: ping: split the visual part of -f into a new option -..
Apr 18 2022, 5:15 PM
pstef added inline comments to D34941: diff3: Clean up printing of ranges for edscript output.
Apr 18 2022, 2:02 PM
pstef committed rG2ad786c63ae2: b64encode: implement -w to wrap lines.
Apr 18 2022, 11:57 AM
pstef committed rG540a99289bb1: Add the base64 command using b64encode and b64decode.
Apr 18 2022, 11:57 AM
pstef committed rGf331cf9b043a: bintrans: reinstate a test case that I lost.
Apr 18 2022, 11:57 AM
pstef closed D32945: Implement base64(1).
Apr 18 2022, 11:56 AM
pstef closed D32944: b64encode: implement -w to wrap lines.
Apr 18 2022, 11:56 AM
pstef committed rG4cd4841a2773: Modularize uuencode and uudecode by wrapping them in bintrans.c.
Apr 18 2022, 8:55 AM
pstef committed rG47bcbde91dea: bintrans: move files to a new directory.
Apr 18 2022, 8:55 AM
pstef closed D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.
Apr 18 2022, 8:55 AM
pstef added a comment to D34896: strcpy(3): Explicitly mention the recommended usage of strlcpy().

To be honest, if I need to quote someone to make my argument stronger, it would be Chris: https://ramblings.implicit.net/c/2014/05/02/c-functions-that-should-be-avoided-part-2.html

Apr 18 2022, 5:18 AM

Apr 17 2022

pstef added a comment to D34896: strcpy(3): Explicitly mention the recommended usage of strlcpy().

Playing devil's advocate, I can't help but not include (one of many) famous Ulrich's quotes:

Dammit, it is not safe. It hides bugs in programs. If a string is too long for an allocated memory block the copying must not simply silently stop. Instead the program must reallocate or signal an error. I can construct you cases where the use of these stupid functions is creating new security problem.

Admittedly, his canonical way to handle these situations uses unportable mempcpy() function, a GNU extension which returns adjusted destination, but still, all-caps scary warning might be a bit too much for the manpage, despite the almost modifier. IMHO it should be either toned down, or better elaborated.

Apr 17 2022, 6:44 PM

Apr 16 2022

pstef added a comment to D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.

Thanks again for reviewing this!

Apr 16 2022, 7:14 PM
pstef updated the diff for D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.

Address some of the comments made by delphij.

Apr 16 2022, 7:03 PM

Apr 15 2022

pstef updated the diff for D34882: ping: split the visual part of -f into a new option -..

Address comments by rpokala.
I decided to choose the word "period" over "dot" because the former was already here.

Apr 15 2022, 8:37 PM
pstef requested review of D34933: Import a quoted-printable bidirectional converter.
Apr 15 2022, 8:26 PM
pstef updated the diff for D32945: Implement base64(1).

Rebase.

Apr 15 2022, 8:20 PM
pstef updated the diff for D32944: b64encode: implement -w to wrap lines.

Rebase.

Apr 15 2022, 8:20 PM
pstef updated the diff for D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.

Rename bin2text2bin to bintrans. Update the manual page.

Apr 15 2022, 8:19 PM
pstef accepted D34912: diff3: allow diff3 ed scripts to generate deletions.
Apr 15 2022, 1:57 PM
pstef accepted D34912: diff3: allow diff3 ed scripts to generate deletions.
Apr 15 2022, 1:55 PM

Apr 14 2022

pstef added inline comments to D34912: diff3: allow diff3 ed scripts to generate deletions.
Apr 14 2022, 3:47 PM

Apr 13 2022

pstef committed rGc8f0a1c6d756: sh: fix autocompletion for commands that share name with a directory.
Apr 13 2022, 7:02 PM

Apr 11 2022

pstef requested review of D34882: ping: split the visual part of -f into a new option -..
Apr 11 2022, 3:02 PM

Apr 7 2022

pstef updated the diff for D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.

Remove uudecode remnants from Makefile.inc1, etc/mtree/BSD.tests.dist, targets/pseudo/tests/Makefile.depend, and targets/pseudo/userland/Makefile.depend

Apr 7 2022, 2:00 PM
pstef updated the diff for D32945: Implement base64(1).

Address delphij's comments.

Apr 7 2022, 12:35 PM

Apr 6 2022

pstef updated the diff for D32944: b64encode: implement -w to wrap lines.

Address mistakes, describe the magic buffer length.

Apr 6 2022, 6:05 PM

Apr 5 2022

pstef updated the diff for D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.

Rebase.

Apr 5 2022, 7:40 PM

Mar 29 2022

pstef committed rGae6aa2d43daa: uudecode: move the new uudecode test from uuencode/ to uudecode/.
Mar 29 2022, 5:31 AM

Mar 28 2022

pstef added a comment to D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.

Hi, thanks for this review!

Mar 28 2022, 7:23 PM
pstef added a comment to D32945: Implement base64(1).

Hi, thanks for this review!

Mar 28 2022, 7:19 PM
pstef committed rGf5138631fb6f: uudecode: use SRCDIR in the regression test.
Mar 28 2022, 7:02 PM
pstef added a comment to D32944: b64encode: implement -w to wrap lines.

Hi, thanks for the review!

Mar 28 2022, 6:57 PM
pstef committed rG1b3af110bcd5: uudecode: add missing test files to Makefile.
Mar 28 2022, 9:53 AM
pstef committed rG9f3203c00314: uudecode: correct error message.
Mar 28 2022, 7:22 AM
pstef committed rGd5d3f5dab209: uu{encode,decode}: improve style.
Mar 28 2022, 7:22 AM
pstef committed rG68700941c7ad: sh: fix autocompletion for commands that share name with a directory.
Mar 28 2022, 7:22 AM
pstef closed D34544: sh: fix autocompletion for commands that share name with a directory.
Mar 28 2022, 7:21 AM

Mar 27 2022

pstef updated the diff for D34544: sh: fix autocompletion for commands that share name with a directory.

Don't leak memory.

Mar 27 2022, 8:19 PM
pstef updated the diff for D32944: b64encode: implement -w to wrap lines.
Mar 27 2022, 12:06 AM
pstef updated the diff for D32945: Implement base64(1).
Mar 27 2022, 12:05 AM
pstef updated the diff for D32943: Modularize uuencode and uudecode by wrapping them in bintrans.c.
Mar 27 2022, 12:03 AM

Mar 26 2022

pstef updated the diff for D34544: sh: fix autocompletion for commands that share name with a directory.

Fortunately, the tilde-expanding function from libedit is nicely exported. Too bad this code is duplicated between sh and libedit.

Mar 26 2022, 11:57 PM
pstef committed rGf50cda551150: ls(1): Allow LSCOLORS to specify an underline (authored by me_cameronkatri.com).
Mar 26 2022, 1:44 PM
pstef committed rG6018f775cebf: Mention kern.timecounter.alloweddeviation in nanosleep.2.
Mar 26 2022, 1:43 PM

Mar 25 2022

pstef added a comment to D34674: etcupdate: remove redundant diff3 flag.

I don't use etcupdate yet, but this change looks reasonable to me.

Mar 25 2022, 4:40 PM

Mar 23 2022

pstef committed rGc4e1fbfe56c2: mount: make libxo support more locale-aware.
Mar 23 2022, 3:53 PM
pstef committed rG3f8b52c91087: mount: add libxo(3) support (authored by me_cameronkatri.com).
Mar 23 2022, 3:53 PM
pstef committed rG540b4791d8c9: cap_fileargs: silence warnings of unused variable (authored by oshogbo).
Mar 23 2022, 3:52 PM

Mar 22 2022

pstef committed rGa4bd2216fb52: ps: fix `ps -aa` (authored by sigsys_gmail.com).
Mar 22 2022, 6:55 PM
pstef committed rGacec1d6969de: mount: improve error message for invalid filesystem names.
Mar 22 2022, 6:54 PM
pstef committed rGb8c245922807: ndiscvt: remove set but not used variable.
Mar 22 2022, 6:54 PM
pstef committed rGe0414a826c21: tcp_wrappers: remove duplicate errno declarations.
Mar 22 2022, 6:54 PM
pstef committed rGcf1507aacb3f: tcp_wrappers: include <unistd.h>.
Mar 22 2022, 6:54 PM
pstef committed rGc38d2d1811bf: procstat: remove set but not used variable.
Mar 22 2022, 6:54 PM
pstef committed rG15635c0ed3b1: backlight: Remove set but not used variable.
Mar 22 2022, 6:54 PM

Mar 18 2022

pstef committed rG8b1f5965d9a5: procstat: remove set but not used variable.
Mar 18 2022, 9:05 AM
pstef committed rGfde687c239e5: backlight: Remove set but not used variable.
Mar 18 2022, 9:04 AM
pstef added a comment to D19548: Add fileargs_lstat to cap_fileargs service.

Note this was committed to the tree a couple of years ago.

Mar 18 2022, 8:26 AM

Mar 17 2022

pstef added inline comments to D19548: Add fileargs_lstat to cap_fileargs service.
Mar 17 2022, 1:12 PM

Mar 14 2022

pstef updated the diff for D34544: sh: fix autocompletion for commands that share name with a directory.

I missed histedit.c in the previous git add.

Mar 14 2022, 8:30 AM

Mar 13 2022

pstef added inline comments to D34544: sh: fix autocompletion for commands that share name with a directory.
Mar 13 2022, 6:49 PM
pstef updated the diff for D34544: sh: fix autocompletion for commands that share name with a directory.

Drop the flags argument from tilde_expand().

Mar 13 2022, 6:40 PM
pstef requested review of D34544: sh: fix autocompletion for commands that share name with a directory.
Mar 13 2022, 1:12 PM

Mar 12 2022

pstef added a comment to D34421: diff3: Add support for -A and -m.

There doesn't seem to be any specification of the diff3 behavior, so I spent some time looking for some test cases. GNU doesn't provide much directly in the source (https://git.savannah.gnu.org/cgit/diffutils.git/plain/tests/diff3) and also the mailing list isn't rich in corner cases relating to diff3. I've found some test cases for git's implementation (https://github.com/git/git/search?l=Shell&q=diff3) but I only skimmed that so I don't know how useful they are.

Mar 12 2022, 7:42 PM