OSDN Git Service

Be case agnostic when matching shortcut targets.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 14 Sep 2012 12:25:31 +0000 (13:25 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 14 Sep 2012 12:25:31 +0000 (13:25 +0100)
ChangeLog
scripts/libexec/unlink.js

index bbfb799..ceab0bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-09-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Be case agnostic when matching shortcut targets.
+
+       * scripts/libexec/unlink.js [ref.TargetPath == chklink]: Apply
+       toLowerCase() on both sides of the comparison.
+
 2012-09-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Note relocation of m4 when packaging source distribution.
index f4b544c..798ac3a 100644 (file)
@@ -226,7 +226,7 @@ for( i = 0; i < argv.length; i++ )
         * that the link target is matched, before...
         */
        var ref = WinShell.CreateShortcut( filename );
-       if( ref.TargetPath == chklink )
+       if( ref.TargetPath.toLowerCase() == chklink.toLowerCase() )
          /*
           * ...we may proceed with deletion.
           */