OpenBSD CVS

CVS log for src/usr.bin/stat/stat.c


[BACK] Up to [local] / src / usr.bin / stat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 6 19:36:13 2023 UTC (9 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

Prefer the POSIX standard st_*tim struct timespec members over the
older BSD st_*timespec names.

ok millert@

Revision 1.24 / (download) - annotate - [select for diffs], Sun Aug 6 19:33:54 2023 UTC (9 months, 1 week ago) by guenther
Branch: MAIN
Changes since 1.23: +6 -7 lines
Diff to previous 1.23 (colored)

Apply rev 1.29 from NetBSD:
-----
Don't printf time_t with %d; fixes PR 44128 from yamt. With this change it
successfully prints mtimes after 2038.
-----

ok millert@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Sep 18 15:14:06 2018 UTC (5 years, 8 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Fix typo in previous: group_from_gid(st->st_gid, 1), not st_uid.
This broke the chmod regression test, as noted and tracked down
by bluhm.

ok millert

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 16 02:42:19 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.21: +33 -32 lines
Diff to previous 1.21 (colored)

Use user_from_uid(3) and group_from_gid(3) to avoid extra passwd
and group file lookups.  This required a bit of reordering of the
file mode handling bits to deal with the const char *.  OK tb@

Revision 1.21 / (download) - annotate - [select for diffs], Sat Oct 10 20:35:01 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

normalize a few more tame request orderings, to help review

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:08 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Change all tame callers to namechange to pledge(2).

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 6 00:24:20 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 (colored)

Appears that tame "stdio getpw rpath" will satisfy all code paths.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 26 21:08:12 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

unsigned char casts for ctype
ok okan

Revision 1.17 / (download) - annotate - [select for diffs], Fri Oct 29 05:36:25 2010 UTC (13 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Include the octet of the mode that contains the setuid/setgid/sticky bits
in the output format used for the -x option.

Problem observed by LEVAI Daniel

Revision 1.16 / (download) - annotate - [select for diffs], Wed Sep 1 06:35:05 2010 UTC (13 years, 8 months ago) by lum
Branch: MAIN
Changes since 1.15: +3 -8 lines
Diff to previous 1.15 (colored)

Remove unused variable: linkfail

ok gilles@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 29 20:51:05 2010 UTC (13 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.14: +1 -6 lines
Diff to previous 1.14 (colored)

we don't care about keeping rccs_id

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 24 09:44:25 2009 UTC (14 years, 10 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored)

synchronize synopsis and usage; "-l", "-r", "-s" and "-x" are mutually
exclusive; while here, slightly improve spacing in the source code
so it fits on a 80-column display again.

diff greatly improved by martynas@;

ok jmc@, martynas@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:21 2008 UTC (15 years, 10 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.12: +2 -9 lines
Diff to previous 1.12 (colored)

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Sun May 28 16:41:18 2006 UTC (17 years, 11 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

warn() already prints __progname for us, okay deraadt@ hshoexer@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 15 17:50:28 2005 UTC (18 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.10: +2 -6 lines
Diff to previous 1.10 (colored)

bye bye whiteouts

Revision 1.10 / (download) - annotate - [select for diffs], Fri Apr 22 09:58:43 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Fix a trivial truncation case, and eliminate a corner case that might
print a nul character. From atatat@netbsd

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 11 08:19:07 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

pass size of right buffer to strlcat. ok deraadt@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Apr 11 08:14:26 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.7: +14 -8 lines
Diff to previous 1.7 (colored)

getting tired of explaining this:  snprintf does not return how many
bytes it PUT into the buffer, but how many it WANTED to, so it can be
> buflen; ok otto

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 7 12:18:35 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

Remove birth time from the default formats, we do not support it (yet), but
leave the B format available for the future. ok tedu@ tdeval@ henning@

Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 3 18:38:28 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.5: +9 -19 lines
Diff to previous 1.5 (colored)

remove readlink stuff; same as otto diff

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 3 18:31:00 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.4: +28 -49 lines
Diff to previous 1.4 (colored)

cleanup; ok otto

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 2 19:17:26 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.3: +8 -16 lines
Diff to previous 1.3 (colored)

Undefine some things which are not conditional any more. No binary change.
ok henning@

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 2 17:52:27 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.2: +4 -14 lines
Diff to previous 1.2 (colored)

Enable birthtime. ok tdeval@ henning@

Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 2 13:48:35 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.1: +2 -52 lines
Diff to previous 1.1 (colored)

Unifdef. No binary change. ok henning@ tedu@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Apr 1 07:07:31 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN

Welcome stat(1), from NetBSD. grrrrrok deraadt@ ok henning@ tdeval@ tedu@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.