HFS is the “Hierarchical File System,” the native volume format used on modern Macintosh computers. hfsutils is the name of a comprehensive software package being developed to permit manipulation of HFS volumes from UNIX and other systems.
Go to file
Pablo Lezaeta Reyes [pˈaβ̞lo lˌe̞θaˈeta rˈejɛ] 263327c7cd
Merge pull request #2 from dcoshea/tcl-alloc-free
xhfs: Use Tcl_Alloc()/Tcl_Free() as required when interacting with Tcl.

Signed-of-by: Pablo Lezaeta
Signed-of-by: dcochea
2018-01-18 01:36:18 -03:00
doc Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hfsck Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
images Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
libhfs Add support for files larger than 2 GB, like any dvd image 2017-09-27 00:18:10 -03:00
librsrc Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
linux Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
test Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
BLURB Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
CHANGES Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
COPYING Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
COPYRIGHT Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
CREDITS Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
INSTALL Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
Makefile.in Fixed Makefile patch 2017-09-27 00:16:42 -03:00
README Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
TODO Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
acconfig.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
binhex.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
binhex.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
charset.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
charset.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
config.h.in Fixed compilation with tcl-8.6+ 2017-09-27 00:18:41 -03:00
configure Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
configure.in Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
copyin.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
copyin.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
copyout.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
copyout.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
crc.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
crc.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
darray.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
darray.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
dlist.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
dlist.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
dstring.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
dstring.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
glob.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
glob.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hattrib.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hattrib.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hcd.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hcd.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hcopy.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hcopy.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hcwd.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hcwd.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hdel.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hdel.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hdisk.pl Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hformat.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hformat.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hfs.tcl Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hfssh.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hfsutil.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hfsutil.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hfswish.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hls.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hls.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hmkdir.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hmkdir.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hmount.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hmount.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hpwd.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hpwd.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hrename.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hrename.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hrmdir.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hrmdir.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
humount.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
humount.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hvol.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
hvol.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
images.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
install-sh Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
strdup.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
strerror.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
strstr.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
strtol.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
suid.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
suid.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
tclhfs.c xhfs: Use Tcl_Alloc()/Tcl_Free() as required when interacting with Tcl. 2018-01-11 20:41:34 +10:30
tclhfs.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
version.c Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
version.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
xhfs.h Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00
xhfs.tcl Initial import from https://www.mars.org/home/rob/proj/hfs/ 2017-09-27 00:10:03 -03:00

README

hfsutils - tools for reading and writing Macintosh HFS volumes
Copyright (C) 1996-1998 Robert Leslie

$Id: README,v 1.10 1998/09/08 18:51:51 rob Exp $

===============================================================================

NOTES ON THIS RELEASE

  This release uses GNU autoconf to automatically configure the software
  for installation and use on your system. This means you should not have
  to modify any files by hand to get the software to compile -- if you do,
  please let the author know so it can be fixed.

  For general installation instructions, please read the `INSTALL' file.

  There are a few special options you can give the `configure' program that
  you should know about:

      --with-tcl            build the Tcl/Tk components
      --with-tk             build the Tk-based X interface `xhfs'
      --disable-cli         do not build or install the command-line utils
      --enable-devlibs      enable installation of the developer libraries

  To build the Tcl tools `hfssh' and `hfs', you must use `--with-tcl'.
  To build the X interface `xhfs', you must use `--with-tcl --with-tk'.

  In order to build the Tcl tools you must have Tcl 7.6 or newer already
  installed on your system. To build the X interface, you must have Tk 4.2
  or newer installed as well.

  If `configure' is unable to locate your Tcl or Tk installation, you will
  have to give it a hint. It looks for the files `tclConfig.sh' and
  `tkConfig.sh' (respectively) which contain all the details about your
  configuration; these files were created when Tcl/Tk was installed on your
  system.

  To help `configure' find these files, you can specify a directory name on
  the command line. For example:

      ./configure --with-tcl=/usr/share/tcl --with-tk=/usr/share/tk

  When in doubt, wait and see if `configure' complains.

  By default, the command-line utilities (hmount, hls, hcopy, etc.) are
  always built and installed. If you don't want them, use `--disable-cli'.

  If you want to install the developer libraries (libhfs.a, librsrc.a, and
  associated header files) as well as the programs, use `--enable-devlibs'.
  The libraries are not installed by default.

  The `INSTALL' file contains the rest of the details you will need to
  compile and install the software. Please read it!

===============================================================================

NOTES ON "SETUID" INSTALLATION

  Although the author has made some effort to make the programs in this
  package somewhat setuid-safe, none are intended to be installed in such a
  manner, and you do so at your own risk!

  Specifically, installing the programs setuid root is a bad idea, as it will
  allow anyone to attempt to open (or format) any file as an HFS volume,
  disregarding the normal UNIX file permission checks.

  A better idea is to modify the permissions on the necessary device files to
  allow access to appropriate users. For example, if you make your floppy
  device group-writable to a special group of floppy users, then only those
  users will be able to access an inserted floppy disk and nothing needs to
  be made setuid.

  Here is an example:

   % ls -l /dev/fd0 /usr/local/bin/xhfs
   brw-rw----   1 root     floppy     2,   0 Sep 17 13:51 /dev/fd0
   -rwxr-xr-x   1 root     staff      339874 Jan 17 20:18 /usr/local/bin/xhfs

   % grep floppy /etc/group
   floppy:*:25:rob,thigpen

  This configuration permits users `rob' and `thigpen' read/write access to
  the floppy device, without needing to make any programs setuid.

  Another possibility is to make some of the programs in this package setgid
  (NOT setuid) to a similar group which has access to the necessary devices.
  This avoids the need to add specific users to a group, since it allows
  anyone to access the devices using the utilities, while still maintaining
  the integrity of the data on the devices since they are not world-writable.
  (A world-writable device lends itself to the possibility that someone may
  corrupt some portion of it by other means and render an HFS volume
  unusable, whereas limiting access only through the utilities means the
  volume is unlikely to be corrupted under normal usage -- although note that
  since HFS itself does not provide any file permission structure, anyone may
  still modify the HFS volume in any way. The only protection here is that
  the modifications must be made in an HFS-compatible way, so that the
  possibility of corruption is reduced.)

  Here is another example:

   % ls -l /dev/fd0 /usr/local/bin/xhfs
   brw-rw----   1 root     floppy     2,   0 Sep 17 13:51 /dev/fd0
   -rwxr-sr-x   1 root     floppy     339874 Jan 17 20:18 /usr/local/bin/xhfs

   % grep floppy /etc/group
   floppy:*:25:

  In this case, only setgid `floppy' programs (such as `/usr/local/bin/xhfs')
  are permitted access to the floppy device.

  To summarize: it is suggested that the utilities NOT be installed setuid or
  setgid. It is possible to install the utilities setgid as described above,
  but it is NOT recommended that the utilities be installed setuid root under
  any circumstances.

===============================================================================

CONTACTING THE AUTHOR

  Please see the `COPYRIGHT' file for copyright and warranty information.

  Send comments, bug reports, suggestions, patches, etc. to:

    * Robert Leslie <rob@mars.org>

  See also the HFS Utilities home page on the Web:

    * http://www.mars.org/home/rob/proj/hfs/

===============================================================================