This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]Write Mount Commands


Here's the patch to mount to tell it to write the commands needed to
re-create the current mount table.

Users of Win9x might be confused if they create the commands from a bash
prompt and then try to run the resulting file from command.com.  In my
system (which has binary mount points),
   mount -m > file
produced a file with NL line endings which command.com chokes on.  Running
the same command from the MSDOS prompt produced a file with CRLF line
endings.
--
Mac :})
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Changelog:

2001-09-03  Michael A Chase <mchase@ix.netcom.com>

    * mount.cc (longopts): Add mount-commands to options list.
               (usage): Add mount-commands option.
               (mount_commands): New function writes commands to recreate
                                 current mounts.

mount.cc-patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]