]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
Fix inverted symlink creation right logging
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 30 Dec 2021 23:19:06 +0000 (23:19 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 30 Dec 2021 23:25:00 +0000 (23:25 +0000)
win32.cc

index 35a28c6bd373c38bb7c934a9651ffb45308b281f..bdb89b9b42e5ebde8bef674b29b044e14ad389da 100644 (file)
--- a/win32.cc
+++ b/win32.cc
@@ -322,7 +322,7 @@ NTSecurity::setDefaultSecurity (bool isAdmin)
   setBackupPrivileges ();
 
   /* Log if symlink creation privilege is available. */
-  if (hasSymlinkCreationRights())
+  if (!hasSymlinkCreationRights())
     Log (LOG_TIMESTAMP) << "User has NO symlink creation right" << endLog;
   else
     Log (LOG_TIMESTAMP) << "User has symlink creation right" << endLog;
This page took 0.036494 seconds and 5 git commands to generate.