rmeoved debug print. Better error msg in createlink.
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 10 Dec 2005 07:42:34 +0000 (07:42 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 10 Dec 2005 07:42:34 +0000 (07:42 +0000)
src/arch/win32/createlink.cpp
src/arch/win32/createlink.exe
src/arch/win32/system_ln

index ad95cca478e62e2613cd43909c4b91a2b5de49c5..249155060449d8f8c4ad6803ee32b447e8409814 100644 (file)
@@ -17,7 +17,7 @@ int main(int argc, char **argv)
   bool fCreatedLink  = CreateHardLink(dest, src, NULL);
   if (!fCreatedLink) {
     int err=GetLastError();
-    printf("CreateHardLink failed errno=%d, WSAerr=%d\n",errno, err);
+    printf("CreateHardLink %s => %s failed errno=%d, WSAerr=%d\n", src, dest, errno, err);
     return 1;
   }
   else {
index 6cef7033894b6f6a9fb0805f1ae98f0b66fae78d..46d823e6dd5fa927f2174c7aea742e747c35b89c 100755 (executable)
Binary files a/src/arch/win32/createlink.exe and b/src/arch/win32/createlink.exe differ
index e5b51e88b5cddacaed5f398175e324f663a0ff09..fe538b02d3a68295fbe7e373c2c4dc9cdaf6c01a 100755 (executable)
@@ -33,7 +33,7 @@ do
   then\r
     destFile=$dest\r
     test -d $dest && destFile=$dest/`basename $src`\r
-    echo $junction $src $destFile\r
+#    echo $junction $src $destFile\r
     $junction $src $destFile\r
     status=$?\r
     test $status -ne 0 && echo "ERROR" &&exit $status\r