History log of /openbsd/sbin/dump/itime.c (Results 1 – 25 of 27)
Revision Date Author Comments
# a7b9eedc 09-May-2024 florian <florian@openbsd.org>

ctime(3) and ctime_r(3) can fail when timestamps are way off.
Add missing error checks to all calls under sbin/

Input kettenis, millert
OK millert


# fd6a1eb9 21-Dec-2023 otto <otto@openbsd.org>

Fix a few unchecked allocations; ok millert@ miod@


# 9be7043f 21-Jan-2021 mortimer <mortimer@openbsd.org>

Rearrange variables in dump / restore to handle -fno-common.

Largely following the commit by mckusick in FreeBSD.

ok naddy@


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# 1ee01421 22-Dec-2015 mmcc <mmcc@openbsd.org>

assign pointers to NULL rather than 0, remove a needless cast


# 5ae94ef8 20-Aug-2015 deraadt <deraadt@openbsd.org>

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert


# 7833183c 23-May-2015 guenther <guenther@openbsd.org>

Canonicalize all devices to DUIDs in order to make -w and -W output consistent.

Based on diff from Manuel Giraud (manuel (at) ledu-giraud.fr) Thanks!


# 352e3770 03-May-2015 guenther <guenther@openbsd.org>

Eliminate the -U flag and make usage of DUID in /etc/dumpdates the default.
Correct old style entries so nothing has to be done for the admin.

diff from Manuel Giraud (manuel (at) ledu-giraud.fr) T

Eliminate the -U flag and make usage of DUID in /etc/dumpdates the default.
Correct old style entries so nothing has to be done for the admin.

diff from Manuel Giraud (manuel (at) ledu-giraud.fr) Thanks!

show more ...


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

show more ...


# 150f0d6b 11-Jul-2014 halex <halex@openbsd.org>

make dump support DUIDs for command line arguments and /etc/dumpdates (using
the new shiny -U switch)

dumpdates part originating from, and discussed with, Maximilian Fillinger

seems reasonable to k

make dump support DUIDs for command line arguments and /etc/dumpdates (using
the new shiny -U switch)

dumpdates part originating from, and discussed with, Maximilian Fillinger

seems reasonable to krw@, "get it in" deraadt@

show more ...


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# a52c79cd 10-Sep-2007 tobias <tobias@openbsd.org>

Proper use of fseek/fseeko macros.

OK joris@, otto@


# 0155e653 03-Jun-2007 millert <millert@openbsd.org>

Add ffs2 support to dump/restore. From FreeBSD with some NetBSD changes.
With help from otto@


# 8b448031 04-Mar-2007 deraadt <deraadt@openbsd.org>

memory leak found by coverity; Jim Razmus


# 412b5aee 04-Mar-2007 deraadt <deraadt@openbsd.org>

delete sunos junk; Jim Razmus


# 0e419460 04-Nov-2004 deraadt <deraadt@openbsd.org>

very basic de-lints


# adb1fa9f 28-Jul-2003 tedu <tedu@openbsd.org>

rcsid should say openbsd. make 'em const while here.


# 53fedb49 26-Jun-2003 deraadt <deraadt@openbsd.org>

ansi and protos


# 1ef0d710 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# e7beb4a7 19-Feb-2002 millert <millert@openbsd.org>

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.

show more ...


# e073c79d 05-Nov-2001 mpech <mpech@openbsd.org>

kill more registers;

millert@ ok


# 0c2b89af 07-Aug-1998 millert <millert@openbsd.org>

Use strlcpy() instead of strncpy().
Change the order of name -> raw device conversions
1) statfs the name and use that info iff the name is the mount point
2) look up name in fstab
3) tre

Use strlcpy() instead of strncpy().
Change the order of name -> raw device conversions
1) statfs the name and use that info iff the name is the mount point
2) look up name in fstab
3) treat as a device
The reason for this is that the mounted filesystems may not agree with
what fstab says. Anyone who has ever moved disks around and accidentally
dumped and empty filesystem will know what I mean.

show more ...


# 00e3001f 08-Feb-1998 deraadt <deraadt@openbsd.org>

y2k fixes; netbsd & Andreas.Gunnarsson@emw.ericsson.se


# 2904a520 05-Jul-1997 millert <millert@openbsd.org>

Fix some incorrect strncpy usage.

From NetBSD (luke@netbsd.org)
* verbosity additions displaying total & per-volume transfer times and rates
* Add the ability to dump specific files & directories of

Fix some incorrect strncpy usage.

From NetBSD (luke@netbsd.org)
* verbosity additions displaying total & per-volume transfer times and rates
* Add the ability to dump specific files & directories of a single
filesystem. This uses fts(3) to access the directory structure (and
not the raw device), so the standard access permissions are adhered
to (unlike dumping an entire filesystem, which just requires read
access to the raw disk device).
* Support SIGINFO status reporting.
* Remove now unused variables that previously stored the (e)uid.
* Be more informative in a couple of error messages.

From NetBSD (mrg)
* fix NetBSD PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>.
don't pass pw->pw_name into functions; make a copy.

show more ...


12