Remove native chmod(2) and stat(2) support (#5606)

This commit is contained in:
Basil Crow authored and GitHub committed 2021-07-23 00:05:06 +08:00
1 parent a45d1a0a76
commit 0913566aef
3 files changed
+2 -24

No files matched your search

-12
View File
@@ -1805,16 +1805,4 @@ public class Util {
private static PathRemover newPathRemover(@NonNull PathRemover.PathChecker pathChecker) {
return PathRemover.newFilteredRobustRemover(pathChecker, DELETION_RETRIES, GC_AFTER_FAILED_DELETE, WAIT_BETWEEN_DELETION_RETRIES);
}
/**
* If this flag is true, native implementations of {@link FilePath#chmod}
* and {@link hudson.util.IOUtils#mode} are used instead of NIO.
* <p>
* This should only be enabled if the setgid/setuid/sticky bits are
* intentionally set on the Jenkins installation and they are being
* overwritten by Jenkins erroneously.
*/
@Restricted(value = NoExternalUse.class)
@SuppressFBWarnings("MS_SHOULD_BE_FINAL")
public static boolean NATIVE_CHMOD_MODE = SystemProperties.getBoolean(Util.class.getName() + ".useNativeChmodAndMode");
}