Do not depend on /cygdrive prefix settings
authorAchim Gratz <[email protected]>
Sun, 31 Jan 2016 09:36:46 +0000 (31 10:36 +0100)
committerAchim Gratz <[email protected]>
Sun, 31 Jan 2016 09:36:46 +0000 (31 10:36 +0100)
    * etc/postinstall/base-files-mketc.sh (WINETC): Use /proc/cygdrive
      prefixed path which keeps working even if the user changes the
      /cygdrive prefix after installation.

etc/postinstall/base-files-mketc.sh
usr/share/doc/base-files/ChangeLog

index 1790cfb..cd14f6d 100755 (executable)
@@ -13,7 +13,7 @@
 
 FILES="hosts protocols services networks"
 OSNAME="$(/usr/bin/uname -s)"
-WINETC="$(/usr/bin/cygpath -S -u)/drivers/etc"
+WINETC="$(/usr/bin/cygpath -S -U)/drivers/etc"
 
 if [ ! -d "${WINETC}" ]; then
   echo "Directory ${WINETC} does not exist; exiting" >&2
index 5100a44..c390726 100644 (file)
@@ -12,6 +12,10 @@ TODO:
 
 Change Log
 ----------
+4.2-5 (unreleased)
+    * etc/postinstall/base-files-mketc.sh (WINETC): Use /proc/cygdrive
+      prefixed path which keeps working even if the user changes the
+      /cygdrive prefix after installation.
 4.2-4 (bugfix release)
     * etc/postinstall/base-files-mketc.sh: Windows only uses 8 characters
       for files in the WINETC directory.  Check if the symlink target