Page MenuHomeFreeBSD
Feed Advanced Search

Aug 25 2021

pstef added a comment to D28402: diff: mmap the file to be diffed.
In D28402#714642, @bapt wrote:

What would be the point for it to be an option? I think if it is safe and faster we should just use that code, instead of complexifying diff code with 2 differents code path

Aug 25 2021, 7:48 PM
pstef closed D31650: diff3: document and test -T.
Aug 25 2021, 4:23 PM
pstef committed rG9f7a81b133c7: diff3: document and test -T (authored by pstef).
diff3: document and test -T
Aug 25 2021, 4:23 PM
pstef added inline comments to D30545: diff(1): Add --color support.
Aug 25 2021, 11:07 AM
pstef added inline comments to D30545: diff(1): Add --color support.
Aug 25 2021, 11:03 AM
pstef added a comment to D28402: diff: mmap the file to be diffed.

Could we make this (mmap) into an option?

Aug 25 2021, 7:02 AM

Aug 24 2021

pstef added inline comments to D30545: diff(1): Add --color support.
Aug 24 2021, 8:16 PM
pstef added inline comments to D30545: diff(1): Add --color support.
Aug 24 2021, 7:07 PM
pstef accepted D30547: ls(1): Allow LSCOLORS to specify an underline.
Aug 24 2021, 6:32 PM
pstef accepted D30547: ls(1): Allow LSCOLORS to specify an underline.
Aug 24 2021, 6:23 PM
pstef added a comment to D30545: diff(1): Add --color support.

Apart from inline comments I would like to ask you to consider adding at least one test case.

Aug 24 2021, 6:06 PM

Aug 23 2021

pstef added a comment to D30547: ls(1): Allow LSCOLORS to specify an underline.

Like in another differential, I'm making a style-related note from a quick glance just to subscribe to this review. But I want to test this more thoroughly.

Aug 23 2021, 10:11 PM
pstef added a comment to D30545: diff(1): Add --color support.

I want to test this soon, but for now I'll just make a style-related note.

Aug 23 2021, 10:04 PM
pstef requested review of D31650: diff3: document and test -T.
Aug 23 2021, 7:38 PM
pstef committed rG3cbf98e2bee9: diff: read whole files to determine if they are ASCII text (authored by pstef).
diff: read whole files to determine if they are ASCII text
Aug 23 2021, 2:46 PM
pstef closed D31639: diff: read whole files to determine if they are ASCII text.
Aug 23 2021, 2:45 PM
pstef committed rG54a3415cb69e: diff3: implement --strip-trailing-cr (authored by pstef).
diff3: implement --strip-trailing-cr
Aug 23 2021, 5:08 AM
pstef committed rGe8ff95356cea: diff3.1: update manual page to match code (authored by pstef).
diff3.1: update manual page to match code
Aug 23 2021, 5:08 AM
pstef closed D31626: diff3: preliminary cleanup.
Aug 23 2021, 5:08 AM
pstef committed rG702dda4368dc: diff3: improve style (authored by pstef).
diff3: improve style
Aug 23 2021, 5:08 AM
pstef committed rG7f7b03f3897f: diff3: sync with upstream (authored by pstef).
diff3: sync with upstream
Aug 23 2021, 5:08 AM
pstef committed rGf8e50dd2c67b: Register /usr/tests/usr.bin/diff3 (authored by pstef).
Register /usr/tests/usr.bin/diff3
Aug 23 2021, 5:08 AM
pstef committed rGaf2f01643184: diff: don't output carriage returns that were stripped on input (authored by pstef).
diff: don't output carriage returns that were stripped on input
Aug 23 2021, 5:08 AM

Aug 22 2021

pstef requested review of D31639: diff: read whole files to determine if they are ASCII text.
Aug 22 2021, 9:21 PM
pstef committed rG108633bb1556: diff: Use unprivileged_user with report_identical test (authored by olivier).
diff: Use unprivileged_user with report_identical test
Aug 22 2021, 7:45 PM
pstef updated the diff for D31626: diff3: preliminary cleanup.

Improve --strip-trailing-cr implementation
add a test case
register diff3 tests with mtree

Aug 22 2021, 1:35 PM
pstef added a comment to P516 bug in diff.
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index 651ec88df90..113b7b62125 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1273,7 +1273,16 @@ fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile, int flags)
                }
                col = 0;
                for (j = 0, lastc = '\0'; j < nc; j++, lastc = c) {
-                       if ((c = getc(lb)) == EOF) {
+                       c = getc(lb);
+                       if (flags & D_STRIPCR && c == '\r') {
+                               if ((c = getc(lb)) == '\n')
+                                       j++;
+                               else {
+                                       ungetc(c, lb);
+                                       c = '\r';
+                               }
+                       }
+                       if (c == EOF) {
                                if (diff_format == D_EDIT ||
                                    diff_format == D_REVERSE ||
                                    diff_format == D_NREVERSE)
Aug 22 2021, 1:24 PM
pstef created P516 bug in diff.
Aug 22 2021, 10:00 AM

Aug 21 2021

pstef updated the diff for D31626: diff3: preliminary cleanup.

Add --strip-trailing-cr

Aug 21 2021, 12:34 AM

Aug 20 2021

pstef updated the diff for D31626: diff3: preliminary cleanup.

Include a commit that I omitted by mistake.

Aug 20 2021, 11:56 PM
pstef requested review of D31626: diff3: preliminary cleanup.
Aug 20 2021, 11:54 PM

Aug 19 2021

pstef committed rGced2dcadccfc: ls: prevent no-color build from complaining when COLORTERM is non-empty (authored by pstef).
ls: prevent no-color build from complaining when COLORTERM is non-empty
Aug 19 2021, 7:24 PM
pstef added a comment to D29493: sh: implement persistent history storage.

By the way it does not build with -DNO_HISTORY.

That's because of D29361, not this one. Will work on it, thank you for the report.

Aug 19 2021, 6:48 AM
pstef committed rG35b253d9d238: sh: fix NO_HISTORY build (authored by pstef).
sh: fix NO_HISTORY build
Aug 19 2021, 4:59 AM

Aug 18 2021

pstef added a comment to D29493: sh: implement persistent history storage.

By the way it does not build with -DNO_HISTORY.

Aug 18 2021, 7:35 PM

Aug 17 2021

pstef committed rGf49931c1423e: style.9: remove an outdated comment about indent(1) (authored by pstef).
style.9: remove an outdated comment about indent(1)
Aug 17 2021, 5:16 PM
pstef committed rGc66e9307ea95: mount.h: improve a comment about flags (authored by pstef).
mount.h: improve a comment about flags
Aug 17 2021, 5:16 PM
pstef requested review of D31588: fstyp: bump WARNS to default and work around warnings.
Aug 17 2021, 5:00 PM
pstef committed rG0e92585cde51: fstyp: add BeFS support (authored by pstef).
fstyp: add BeFS support
Aug 17 2021, 4:17 PM
pstef closed D29917: BeFS support for fstyp command.
Aug 17 2021, 4:16 PM

Aug 16 2021

pstef added a comment to D29917: BeFS support for fstyp command.

How do I obtain befs.img.bz2? I can see it neither in tree nor in this patch.

Aug 16 2021, 8:54 AM

Aug 15 2021

pstef added a comment to D18921: Prevent buffer overrun in tzsetup (for -C with overly large parameter).

This is a truncation that in my opinion should result in program error.
Also note that for a non-chrooted run the paths could already be in the arrays.
So I would do it more or less like below (untested, compiled):

Aug 15 2021, 8:11 PM
pstef added a comment to D19193: Small typo in UPDATING.

82455a3319a9 corrected the word but the space is still there.

Aug 15 2021, 7:27 PM
pstef accepted D20983: Sort & dedupe getopt flags for daemon.
Aug 15 2021, 7:08 PM
pstef accepted D21123: Teach ps(1) to select processes by parent process ID..

I tested this and it works for me. The patch as a whole will look good to me when synopsis is updated to reflect the change.

Aug 15 2021, 7:00 PM
pstef accepted D16132: New cmb(3) library and cmb(1) utility.

Looks good to me.

Aug 15 2021, 4:43 PM
pstef accepted D11317: expr(1): Add -E flag to interpret regular expressions as EREs.

Consider adding a cross reference to re_format.

Aug 15 2021, 2:47 PM
pstef added a comment to D13965: Bug 217149 - seq(1) inconsistently omits 'last' when using float increment .

This was fixed by 3049d4cc (r330086).

Aug 15 2021, 2:27 PM
pstef closed D2266: I can find no reason to allow packets with both SYN and FIN bits set past this point in the code. The packet should be dropped and not massaged as it is here..

This has been committed as 916e17fd5678.

Aug 15 2021, 9:59 AM

Aug 14 2021

pstef requested review of D31540: mount: improve error message for invalid filesystem names.
Aug 14 2021, 9:51 PM

Jul 15 2021

pstef added a comment to D31146: cron: Implement -s command option.
In D31146#701876, @gbe wrote:

The man page part looks good, but I am a little bit confused, on my FreeBSD systems I see

root 66156 0.0 0.0 12800 1680 - Is 7Jul21 0:04.38 /usr/sbin/cron -s

when executing 'ps axuw'. So it seems, that some kind of a '-s' option is already implemented.

Jul 15 2021, 9:34 AM

Jun 17 2021

pstef added inline comments to D30802: man9: add hz(9) and hardclock(9).
Jun 17 2021, 5:01 PM
pstef added inline comments to D30804: NOTES: Update the HZ entry with latest advice..
Jun 17 2021, 4:52 PM

May 20 2021

pstef accepted D29917: BeFS support for fstyp command.
May 20 2021, 7:38 PM

May 8 2021

pstef added inline comments to D30149: Example of basic OSS audio application.
May 8 2021, 12:39 PM

May 5 2021

pstef committed rGc69775749f2b: getdirentries.2: remove unnecessary space (authored by pstef).
getdirentries.2: remove unnecessary space
May 5 2021, 11:06 AM
pstef committed rG6ac7b0221f45: Balance parentheses in sysctl descriptions (authored by pstef).
Balance parentheses in sysctl descriptions
May 5 2021, 11:06 AM
pstef committed rG2556ee3a27af: sh: fix debug build (authored by pstef).
sh: fix debug build
May 5 2021, 11:06 AM
pstef committed rGbee62aa5a69f: sh: silence sanitizer (authored by pstef).
sh: silence sanitizer
May 5 2021, 11:06 AM
pstef committed rG21b292072409: sh(1): autocomplete commands (authored by pstef).
sh(1): autocomplete commands
May 5 2021, 11:06 AM

May 3 2021

pstef accepted D29493: sh: implement persistent history storage.
May 3 2021, 5:18 AM

May 2 2021

pstef accepted D29493: sh: implement persistent history storage.

if (fd == -1 || (f = fdopen(fd, "w")) == NULL) and it will LGTM.

May 2 2021, 6:21 PM

Apr 30 2021

pstef added a comment to D29493: sh: implement persistent history storage.

I tested the save/restore history capabilities that are built into libedit and so far it looks good to me.

Apr 30 2021, 6:12 AM

Apr 11 2021

pstef committed rG1fdd6934d596: getdirentries.2: remove unnecessary space (authored by pstef).
getdirentries.2: remove unnecessary space
Apr 11 2021, 9:18 AM
pstef committed rGa212f56d10d0: Balance parentheses in sysctl descriptions (authored by pstef).
Balance parentheses in sysctl descriptions
Apr 11 2021, 8:38 AM
pstef committed rG1a4e959eb34a: sh: fix debug build (authored by pstef).
sh: fix debug build
Apr 11 2021, 7:26 AM

Apr 7 2021

pstef added a comment to D26447: add deprecation notice to ftpd.

Hum, not a core system functionality? May I remind you that ftp://ftp.freebsd.org exists? Though it probably does not run the base system ftpd, it DOES run that functionality.

Apr 7 2021, 6:41 AM

Apr 6 2021

pstef accepted D26447: add deprecation notice to ftpd.

If there are security bugs in ftpd that will force us to release errata. It won't be the vocal users' responsibility to handle it. On the other hand, it wouldn't painful to pkg install ftpd unless you're emotionally attached. The existence of ftpd in base also provokes suggestions to maintain and enhance it (for example with encryption support).

Apr 6 2021, 1:56 PM

Apr 5 2021

pstef abandoned D29255: make shell started by "jexec -l [-U user] jail" a login shell.
Apr 5 2021, 7:32 PM
pstef added inline comments to D29591: gptboot.efi: Add man page.
Apr 5 2021, 7:25 PM

Apr 1 2021

pstef committed rG5a18515b3143: sh: silence sanitizer (authored by pstef).
sh: silence sanitizer
Apr 1 2021, 5:34 AM

Mar 31 2021

pstef added inline comments to D29493: sh: implement persistent history storage.
Mar 31 2021, 7:48 AM
pstef added inline comments to D29493: sh: implement persistent history storage.
Mar 31 2021, 7:34 AM
pstef added inline comments to D29493: sh: implement persistent history storage.
Mar 31 2021, 1:48 AM

Mar 30 2021

pstef added inline comments to D29493: sh: implement persistent history storage.
Mar 30 2021, 9:09 PM
pstef added inline comments to D29493: sh: implement persistent history storage.
Mar 30 2021, 9:08 PM
pstef accepted D29494: sh: improve emacs mode.
Mar 30 2021, 8:21 PM
pstef added inline comments to D29493: sh: implement persistent history storage.
Mar 30 2021, 8:16 PM
pstef added inline comments to D29020: efifb,vbefb: implement vd_fini.
Mar 30 2021, 1:52 PM

Mar 29 2021

pstef committed rGb315a7296d2a: sh(1): autocomplete commands (authored by pstef).
sh(1): autocomplete commands
Mar 29 2021, 9:23 AM
pstef closed D29361: sh(1): autocomplete commands.
Mar 29 2021, 9:22 AM

Mar 28 2021

pstef updated the diff for D29361: sh(1): autocomplete commands.

I believe that all reported issues (and more) have been addressed.

Mar 28 2021, 4:36 PM

Mar 27 2021

pstef committed rG0e9d4b8b7574: security.7: fix typo in sysctl name (authored by pstef).
security.7: fix typo in sysctl name
Mar 27 2021, 6:49 PM

Mar 26 2021

pstef committed rG4233882f4ed3: security.7: fix typo in sysctl name (authored by pstef).
security.7: fix typo in sysctl name
Mar 26 2021, 9:30 PM

Mar 24 2021

pstef updated the diff for D29361: sh(1): autocomplete commands.

Add code to remove duplicates.

Mar 24 2021, 8:18 AM

Mar 22 2021

pstef added inline comments to D29361: sh(1): autocomplete commands.
Mar 22 2021, 7:47 AM
pstef updated the diff for D29361: sh(1): autocomplete commands.

Apply some of the fixes suggested by Jilles.

Mar 22 2021, 7:30 AM

Mar 21 2021

pstef added a comment to D29361: sh(1): autocomplete commands.

Thanks, I tried to fix all the obvious mistakes. I will have to test and think about the rest of your comments.

Mar 21 2021, 7:28 PM
pstef updated the diff for D29361: sh(1): autocomplete commands.

Address mistakes pointed out by Alex.

Mar 21 2021, 7:25 PM
pstef updated the summary of D29361: sh(1): autocomplete commands.
Mar 21 2021, 2:46 PM
pstef requested review of D29361: sh(1): autocomplete commands.
Mar 21 2021, 2:29 PM

Mar 16 2021

pstef updated the diff for D29255: make shell started by "jexec -l [-U user] jail" a login shell.

@kevans pointed out to me that my previous patch replaces the name with a dash character, while login(1) only prepends the dash to the original program name, so that's probably what shells expect. I did try to fix that, it seems to work for the few cases that I tested, but in the meantime someone asked about Linux jails, which I looked into. Those can't be properly supported since our getpwnam won't work with the underlying system's structure; so while it is possible to spawn a login shell, the shell would always be /bin/sh which under standard Ubuntu seems to translate into dash, not a great shell for interactive use.

Mar 16 2021, 10:50 PM

Mar 14 2021

pstef updated the diff for D29255: make shell started by "jexec -l [-U user] jail" a login shell.

Agree with jamie's comments.

Mar 14 2021, 7:08 PM
pstef requested review of D29255: make shell started by "jexec -l [-U user] jail" a login shell.
Mar 14 2021, 2:18 PM

Aug 14 2020

pstef added inline comments to D26064: Check XHCI endpoint state before issuing XHCI endpoint commands.
Aug 14 2020, 10:41 AM

Aug 3 2020

pstef committed rS363788: MFC 363621: sh(1): print a newline when ^D quits sh.
MFC 363621: sh(1): print a newline when ^D quits sh
Aug 3 2020, 6:54 AM

Jul 31 2020

pstef committed rS363724: MFC r363268:.
MFC r363268:
Jul 31 2020, 7:37 AM

Jul 27 2020

pstef closed D25813: sh(1): print a newline when ^D exits sh.
Jul 27 2020, 6:46 PM
pstef committed rS363621: sh(1): print a newline when ^D quits sh.
sh(1): print a newline when ^D quits sh
Jul 27 2020, 6:46 PM
pstef accepted D25398: w: remove proc_compare().

I would also remove the "most interesting" comment.

Jul 27 2020, 5:46 AM