Skip to content

Commit 2ae0b73

Browse files
committed
Use S_IFMT equivalent from Apache Ant
1 parent 99eaff1 commit 2ae0b73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

os/src/ZipOps.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,8 @@ object unzip {
243243
} yield os.SubPath(zipEntry.getName)
244244
}
245245

246-
private lazy val S_IFMT: Int = java.lang.Integer.parseInt("0170000", 8)
247246
private def isSymLink(mode: Int): Boolean =
248-
(mode & S_IFMT) == apache.UnixStat.LINK_FLAG
247+
(mode & apache.PermissionUtils.FILE_TYPE_FLAG) == apache.UnixStat.LINK_FLAG
249248

250249
/**
251250
* Extract the given zip file into the destination directory

0 commit comments

Comments
 (0)