diff options
Diffstat (limited to 'winsup/doc/pathnames.xml')
-rw-r--r-- | winsup/doc/pathnames.xml | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/winsup/doc/pathnames.xml b/winsup/doc/pathnames.xml index 412c98f43..3647253e2 100644 --- a/winsup/doc/pathnames.xml +++ b/winsup/doc/pathnames.xml @@ -44,9 +44,7 @@ all users. Sometimes there's a requirement to have user specific mount points. The Cygwin DLL supports user specific fstab files. These are stored in the directory <filename>/etc/fstab.d</filename> and the name of the file is the Cygwin username of the user, as it's -created from the Windows account database or stored in the -<filename>/etc/passwd</filename> file (see -<xref linkend="ntsec-mapping"></xref>). The structure of the +stored in the <filename>/etc/passwd</filename> file. The structure of the user specific file is identical to the system-wide <filename>fstab</filename> file.</para> @@ -355,25 +353,6 @@ the cygdrive prefix, use a distinct path prefix:</para> D: /mnt/d somefs text 0 0 </screen> -<para>To simplify scripting, Cygwin also provides a -<filename>/proc/cygdrive</filename> symlink, which allows to use a fixed path -in scripts, even if the actual cygdrive prefix has been changed, or is different -between different users. So, in scripts, conveniently use the -<filename>/proc/cygdrive</filename> symlink to successfully access files -independently from the current cygdrive prefix:</para> - -<screen> - $ mount -p - Prefix Type Flags - /mnt user binmode - $ cat > x.sh <<EOF - cd /proc/cygdrive/c/Windows/System32/Drivers/etc - ls -l hosts - EOF - $ sh -c ./x.sh - -rwxrwx---+ 1 SYSTEM SYSTEM 826 Sep 4 22:43 hosts -</screen> - </sect2> <sect2 id="pathnames-symlinks"><title>Symbolic links</title> |