OpenBSD CVS

CVS log for src/usr.sbin/makefs/makefs.c


[BACK] Up to [local] / src / usr.sbin / makefs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:51 2022 UTC (18 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:21 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 24 22:55:50 2018 UTC (5 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: 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.19: +5 -1 lines
Diff to previous 1.19 (colored)

unveil(2) is easy since this only uses one directory tree
(containing no exterior pointing symlinks), and a file.
In snaps for about 2 months.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 17 16:12:15 2016 UTC (7 years, 5 months ago) by krw
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
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)

While here nuke some more annoying whitespace nits.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 8 09:43:59 2016 UTC (7 years, 7 months ago) by mestre
Branch: MAIN
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)

pledge for "stdio rpath wpath cpath" promises since it only needs to
read/write/create files

OK natano@ and tb@, thank you both for noticing the bad indentation

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 26 07:53:47 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Remove FS-specific option descriptions from the source code. We have a
manual for that. While there document the isolevel option and remove
some dysfunctional cd9660 options.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Oct 25 07:59:45 2016 UTC (7 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.15: +7 -16 lines
Diff to previous 1.15 (colored)

convert usage() to just spit out the normal options list,
instead of trying to list all the fs-specific stuff;

help/ok natano

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 23 10:22:21 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.14: +2 -7 lines
Diff to previous 1.14 (colored)

Remove short option names for -o.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 22 20:50:21 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

-#include <stdbool.h>

Revision 1.13 / (download) - annotate - [select for diffs], Sat Oct 22 19:17:47 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.12: +13 -14 lines
Diff to previous 1.12 (colored)

Clean up timestamp handling code to be less confusing.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 22 18:17:14 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.11: +1 -16 lines
Diff to previous 1.11 (colored)

Remove huge amounts of debug code, that make the code nearly unreadable.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 18 18:34:45 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.10: +3 -6 lines
Diff to previous 1.10 (colored)

Remove setprogname().

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 18 18:15:23 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.9: +2 -11 lines
Diff to previous 1.9 (colored)

Only allow epoch timestamps for -T. A shared option for either using the
timestamps from a file or using an epoch timestamp is ridiculous.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 18 17:38:20 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.8: +5 -12 lines
Diff to previous 1.8 (colored)

Remove the -B flag. Most of the byteswapping code was tedu'd already.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 17 14:25:33 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

unused variables

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 17 07:45:32 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.6: +6 -11 lines
Diff to previous 1.6 (colored)

Remove the -d option.

    -d debug-mask
           Enable various levels of debugging, depending upon which bits are
           set in debug-mask.  XXX: document these

Useful, eh? Leaving the actual debug code in there for now, so debug
flags can be set at compile time. That might be removed in the future
too.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 16 21:59:28 2016 UTC (7 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.5: +3 -18 lines
Diff to previous 1.5 (colored)

remove some byte swapping code from the top end

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 16 20:45:07 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.4: +6 -22 lines
Diff to previous 1.4 (colored)

Only allow one directory as argument and remove the -r option.
ok deraadt (on principle)

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 16 20:30:40 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.3: +3 -7 lines
Diff to previous 1.3 (colored)

Remove the -Z (spare ffs image) option.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 16 20:26:56 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

Add OpenBSD RCS tags; reminded by tb

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 16 19:53:11 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN
Changes since 1.1: +0 -2 lines
Diff to previous 1.1 (colored)

Unused includes, as reported by include-what-you-use from ports.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 16 17:08:53 2016 UTC (7 years, 7 months ago) by natano
Branch: MAIN

Import makefs - a tool to create filesystem images from a directory.

This is a rough port of the NetBSD tool with some features removed we
don't need. It compiles, but I don't promise anything more. Importing
now, so we can hack on it in tree.

The supported filesystem types are: cd9660, ffs and msdosfs.

ok deraadt

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.