Commit Graph

347 Commits

Author SHA1 Message Date
nonaka c7f80e628d Initialize boot_catalog_entry's entry_type properly.
This had been missing but the type was used in cd9660_setup_boot().

From OpenBSD usr.sbin/makefs/cd9660/cd9660_eltorito.c r1.10.
2017-11-09 01:28:05 +00:00
christos 3bf4d13e2d leave the size alone and set the create_size to include the offset. It
does not matter anyway, but it makes more sense this way.
2017-04-14 15:40:35 +00:00
wiz 0d97bd8ae2 Whitespace fixes. 2017-04-14 07:09:43 +00:00
christos c02e58cd9e Explain the 's' image size better. 2017-04-13 17:21:29 +00:00
christos e919fde2d0 for consistency with ffs, don't count the offset into the size. 2017-04-13 17:20:59 +00:00
christos 820702f055 Fix error handling; msdosfs_wfile is supposed to return errno. 2017-04-13 17:10:12 +00:00
christos c8429e33e6 Change duplicate 'D' option to 'm'. From Ed Maste @ FreeBSD 2017-03-15 15:33:54 +00:00
christos 375072cc9c allow 0 timestamp 2017-02-16 22:44:06 +00:00
christos d372863cc1 need <sys/stat.h> 2017-02-16 22:10:50 +00:00
christos 639cd04dc3 fix msdos reproducible builds! 2017-02-16 19:11:13 +00:00
christos e93222b74e start fixing msdosfs for reproducible builds; does not work yet. 2017-02-16 18:50:04 +00:00
wiz 5ef8e05441 file system police. 2017-02-12 14:45:09 +00:00
christos 49c3d03fa6 untorture language. 2017-02-11 16:04:59 +00:00
christos 2bb798b1d6 mention timezone change for -T timestamp 2017-02-11 15:32:51 +00:00
kre 0368fad281 Revert the part of mkfs.c 1.36 that "gutted the const" (while
retaining the part that added a different one).

That is, re-constipate makefs (well, just a bit, no real pain here.)
2017-02-09 04:42:53 +00:00
christos 683c28c5f2 If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).
2017-02-08 21:33:12 +00:00
christos f9f791fd0d stampst.st_ion consistent treatment (non-zero vs zero instead of testing == 1) 2017-02-08 21:27:26 +00:00
christos b4ccad3ff2 gut const for now. 2017-02-08 16:00:30 +00:00
christos db38a065ef Don't store random (from ASLR) pointers into the superblock. Should be the
last (famous last words) problem with reproducible builds!
2017-02-08 04:08:53 +00:00
christos 7450df85ed no, this is wrong. 2017-02-08 02:23:45 +00:00
christos 86c77ab60f zero out the superblock so that it does not contain random stuff in the
spare fields.
2017-02-08 02:20:35 +00:00
nonaka d01ec60946 makefs(8): add cd9660 eltorito-alt-boot option for EFI boot. 2017-01-24 11:22:43 +00:00
wiz c747e8df7d Document msdos-specific options directly.
From jmc@OpenBSD.

Bump date.
2017-01-11 13:47:27 +00:00
wiz 38d4f70efc Some changes and sorting based on diff sent from jmc@OpenBSD. 2017-01-11 13:44:24 +00:00
joerg f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
kamil 1eec2c6197 Include missing header <unistd.h> for write(2) read(2) close(2)
These functions are undefined after switch to new zlib.
2017-01-10 04:27:02 +00:00
christos 5235206633 PR/51652: Sevan Janiyan: makefs dies due to segmentation fault
Don't dereference NULL when running out of nodes during rename.
2016-11-25 23:02:44 +00:00
christos 6125bf59b0 tidy up error messages 2016-06-24 19:24:11 +00:00
christos f2ec6c66ac PR/50911: David Binderman: Optimize memset 2016-03-07 15:58:05 +00:00
mlelstv bbd8666d0f Split case folding table into separate source file and add full
copyright and permission notice from http://www.unicode.org/copyright.html
2016-02-06 10:40:58 +00:00
mlelstv 223c7df5b3 Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
entries from UTF8 encoded file names.
2016-01-30 09:59:27 +00:00
christos c316d7b24a little size_t/ssize_t... 2015-12-24 15:52:37 +00:00
christos 204cbe512f Fix some more MKREPRO issues in cdrom creation. Now amd64 passes MKREPRO. 2015-12-21 03:19:17 +00:00
christos 911dc95740 more deterministic ffs for reproducible builds. 2015-12-21 00:58:08 +00:00
christos 61db082a58 Add timestamp support to the ffs image creation; needed for in kernel memory
images MKREPRO.
2015-12-20 22:54:44 +00:00
joerg d0bd9a5f3f Don't pass garbage to parsedate, but do use the return value. 2015-11-27 15:10:32 +00:00
wiz 516ffc06d2 Sort options in usage to match man page order. 2015-11-25 16:32:20 +00:00
wiz 9c188db61b "file system" as two words. 2015-11-25 16:32:00 +00:00
christos 799916c021 Provide a -T option to set timestamps to a consistent value for MKREPRO 2015-11-25 00:48:49 +00:00
christos 50b513f12f remove clause 3. 2015-10-16 16:40:02 +00:00
christos 7408c4ccbf more error normalization 2015-06-17 01:05:41 +00:00
christos 8ee626c9fa improve error messages (remove \n, use __func__, etc) 2015-06-16 23:04:13 +00:00
agc aa7e0e4b83 Make the userland signature and uses of bread() match the kernel ones,
after the removal of the cred argument.
2015-03-29 05:52:59 +00:00
christos e701837bc1 reflect reality about filesystems supported. 2015-01-12 19:50:47 +00:00
christos d79005d78a PR/49559: Christian Brueffer: Fix typo maxbpf instead of maxbpg. 2015-01-12 19:50:25 +00:00
snj f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
martin 3c93e210ff Make msdosfs time conversion use the y/m/d/h/m/s conversion functions
from clock_subr.c and compile that into the userland (and tools)
makefs as well.
2014-09-01 09:09:47 +00:00
maxv ca657fc91e What a terrible use-after-free 2014-07-09 06:04:16 +00:00
martin 4bc697a5ef PR kern/48852 (which should have been bin/ in retrospect): apply patch
from Thomas Schmitt to fix rockridge encoding of device nodes.
2014-05-30 13:14:47 +00:00
joerg 0850b0cc3c long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.
2013-12-19 23:00:50 +00:00