Commit Graph

181 Commits

Author SHA1 Message Date
mbalmer f0a888ee5f make sense 2009-11-22 18:43:27 +00:00
mbalmer 124961627e s/the the/the/ 2009-11-22 18:40:26 +00:00
snj 550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
ahoka 39c5e1f59f Get rid of the DOS line endings in the file.
No change of the code intended.
2009-07-04 14:31:38 +00:00
joerg 70e3d67b70 Create images with 0666 - umask, not 0777 - umask (e.g. without x bits). 2009-04-28 22:49:26 +00:00
lukem d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
dyoung 7af558eba1 Distinguish read(2) failure due to a short read from other causes, and
suggest in the error message a possible cause: the size= attribute in
the metalog (if one is given) may be different from the source file's
actual size.
2009-04-16 18:54:16 +00:00
bjh21 9d5675794b Bump date for last change. 2009-01-20 20:47:25 +00:00
pooka aeac8f5107 Move fs-specific stuff in Makefile to fs/Makefile.inc to clarify
top-level Makefile.
2009-01-16 19:39:52 +00:00
pooka 9857fb8cb2 remove fsopts asserts - the parameter is unused, so we don't care here 2009-01-16 18:02:24 +00:00
bjh21 f8474b32a7 Add support for encoding RISC OS metadata into ISO 9660 filesystems.
This is done by adding the general ability to stuff non-SUSP data into
the end of the System Use field of a Directory Record, which required
some amount of rewriting of the SUSP support.  I think the result is
at least as good as what came before, and I've fixed at least one bug
along the way.  Tested against RISC OS 3.70 on my Risc PC.

Oh, why do we want it?  It should allow us to make acorn{26,32} CDs that
can be booted directly from RISC OS without mucking around copying the
bootloader to a native filing system.
2009-01-10 22:06:29 +00:00
he 8309b1bdfc Initialize a local variable to get rid of a "may be used uninitialized"
warning (turned into error by -Werror).
2009-01-10 11:04:36 +00:00
bjh21 7dd482c240 Fix another bug in SUSP "CE" handling: when the SUSP records fit into
the System Use field with fewer then 28 bytes to spare, we were
remembering the wrong length for the System Use field and hence
emitting a corrupt directory entry.  This could be triggered by trying
to build a filesystem containing a regular file with a 120-byte name.
Now we're a little more careful.
2009-01-09 00:24:07 +00:00
bjh21 61773f97b8 When splitting a System Use Area between a System Use field and a
Continuation Area, be sure to insert the "CE" record at the correct
point in the chain of SUSP records.  Without this, makefs emits
an invalid image if any file needs a Continuation Area.  The bug
seems to have been introduced with the conversion to TAILQs.
2009-01-08 23:31:33 +00:00
bjh21 a9eb597f96 Typo: debuging -> debugging. 2009-01-08 22:28:45 +00:00
bjh21 72846fc11e If the user specifies a cd9660-specific option that needs an integer value
without supplying a value, complain at them instead of segfaulting.
Or, to put it another way, check that the value is non-NULL before calling
set_option().
2009-01-08 22:26:19 +00:00
lukem f9dee3872f cd9660 support has been present for a while 2009-01-03 08:25:35 +00:00
christos 33cb72e1c9 fix for 64 bit time_t and dev_t. 2008-12-28 21:51:46 +00:00
ad 577910fbd3 Make the allow-multidot option useful. 2008-11-21 10:02:12 +00:00
ahoka 40ccd11cb5 Import changes from the MirBSD Project:
Initialise memory before writing to only part of it,
making sure that the string is NUL-terminated

Allocate the maximum allowed length (including the
terminating NUL byte) for the temporary name string, make sure
the final output is NUL terminated, and copy back the NUL when
overwriting the previously created name (since maxlen is always
at least 1 less than ISO_FILENAME_MAXLENGTH_WITH_PADDING, this
is no problem)

Patches from Thorsten Glaser through freenode.net.
2008-10-30 18:43:13 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
reinoud 01c0b5bf89 Fix typo in cd9660 functionname cd9660_setup_boot_volume_descritpor ->
cd9660_setup_boot_volume_descriptor.

Interestingly the same typo was used in 3 files!
2008-07-27 10:29:32 +00:00
skrll 989d6357d3 Add an option to load a generic boot image into the first 32K of the
cd9660 image.
2008-05-10 19:00:07 +00:00
dyoung 537fc55662 Add a todo item: read files from multiple directories. 2007-12-10 23:54:35 +00:00
wiz f2714d32d2 Fix Xref. 2007-12-02 19:19:16 +00:00
lukem 8e0dbfdf62 Use IEC 60027-2 prefixes for 2^n based prefixes. 2007-04-13 04:12:55 +00:00
christos 535dee52f6 Fix deep directory move rock-ridge extension. Code was there, but it had
bit-rotted.
2007-04-07 17:14:58 +00:00
christos a516872c5c PR/36006: Takahiro Kambe: makefs(8) create cd9660 file system with wrong time
stamp because localtime(3) and gmtime(3) share the same buffer. Fixed by using
the _r functions.
2007-03-14 14:11:17 +00:00
uebayasi a045df12cc Use periods in tables consistently. 2007-02-01 06:50:15 +00:00
uebayasi a77b0db767 New sentence new line. 2007-02-01 06:46:27 +00:00
dogcow 8e180a72c2 emasculate debugging mode for the hosttool version of makefs, to avoid various
hairy endian-decoding macros/inlined functions/etc.
2007-01-30 01:46:33 +00:00
dogcow f36028509f revert this change, too. 2007-01-28 10:40:19 +00:00
dogcow f7c54e5b52 Due to recent changes in the cd9660 code, crosscompilation of tools/makefs
now fails due to the use of [be]e{16,32}dec. Add a compat header, and force
the inclusion of <sys/endian.h>.
2007-01-28 09:19:33 +00:00
hubertf 889da1779b * Don't include headers twice
* Remove a few trailing whitespaces
 * Rearrange and join to one #if for some headers

Patch contributed by Slava Semushin <slava.semushin@gmail.com>
in private mail.
2007-01-16 17:32:04 +00:00
christos 9450025adc from Anon Ymous: compile with -Wextra 2006-12-18 21:03:29 +00:00
bouyer 3697550e70 Don't depend on lubutil if we're building host tools. Fix tools build on
non-NetBSD hosts.
2006-12-16 12:59:16 +00:00
he 0a97c3f688 Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
christos f6a7372b60 use c99 initializers 2006-10-22 21:09:47 +00:00
dbj d0c4ff452b implement -x by pruning fsnodes tree before building filesystem rather
than by skipping nodes while building filesystem
2006-10-10 01:55:45 +00:00
dbj 0e392af953 add implementation of free_fsnodes() which unlinks a node
from the hierarchy and frees it and any of its children
use it to free memory before a normal exit, which helps diagnostics
2006-10-10 01:46:49 +00:00
dbj 2d7375cec3 free specfile structure once it has been applied 2006-10-10 01:41:14 +00:00
dbj 1ca1523d99 use new implementation of link_check which i
implemented for du.c revision 1.25 :

Use open address hashtable with multiplicative double hash probing
and exponential hashtable growth for tracking previously seen inodes.
This replaces the O(n^2) behavior of linkchk() with an implementation
that should be O(n*logn)
2006-10-10 01:39:10 +00:00
dbj daab9400b9 use strtoll instead of strsuftoll to parse -d so it can be specified
in hex with a 0x prefix
2006-10-10 01:32:42 +00:00
dbj e10e76d4c6 make -t cd9660 obey -x option similarly to ffs 2006-10-08 16:25:18 +00:00
hubertf 924dbbdb7d Fix fix for Coverity CID 2751:
Move an error check to the right place, and instead of blindly insisting on
an argument for all of "no-emul-boot", "no-boot", "hard-disk-boot" and
"boot-load-segment", only require it for the last one, which is the only
one that requires/uses it.

OK'd by Christos
2006-06-01 21:06:37 +00:00
christos 323f38bde6 Coverity CID 2751: Avoid NULL deref. 2006-05-25 00:25:00 +00:00
mrg 16efbf8575 don't do the -Wno-pointer-sign dance for host programs. 2006-05-12 01:18:25 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
christos 2e3cc3a126 Coverity CID 174: Add extra NULL test to appease coverity. 2006-04-22 17:40:49 +00:00
christos d9b764e5f1 Coverity CID 548: Fix resource leak. 2006-04-22 17:38:20 +00:00