mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2abc4b397 | ||
|
|
fe0d42fc97 | ||
|
|
19e4670c24 | ||
|
|
fbd6e00720 | ||
|
|
f69cdb1505 | ||
|
|
135b1c819b | ||
|
|
9c51b862cd | ||
|
|
a6353cbb2d | ||
|
|
f11055a726 | ||
|
|
da98153ab6 |
@@ -37,7 +37,7 @@ If you need something that is not implemented, it shouldn't be too hard to add (
|
||||
Dependencies
|
||||
-------------
|
||||
|
||||
slf4j_ is required. bouncycastle_ is highly recommended and required for using some of the crypto algorithms.
|
||||
Java 6+. slf4j_ is required. bouncycastle_ is highly recommended and required for using some of the crypto algorithms.
|
||||
jzlib_ is required for using zlib compression.
|
||||
|
||||
|
||||
|
||||
8
pom.xml
8
pom.xml
@@ -6,7 +6,7 @@
|
||||
<groupId>net.schmizz</groupId>
|
||||
<artifactId>sshj</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>0.2.0</version>
|
||||
<version>0.2.3</version>
|
||||
|
||||
<name>sshj</name>
|
||||
<description>SSHv2 library for Java</description>
|
||||
@@ -41,7 +41,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15</artifactId>
|
||||
<artifactId>bcprov-jdk16</artifactId>
|
||||
<version>1.45</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
@@ -111,7 +111,7 @@
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.2-beta-4</version>
|
||||
<version>2.2-beta-5</version>
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<descriptor>src/assemble/examples.xml</descriptor>
|
||||
@@ -176,7 +176,7 @@
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15</artifactId>
|
||||
<artifactId>bcprov-jdk16</artifactId>
|
||||
<version>1.45</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
*/
|
||||
package net.schmizz.sshj.xfer;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -26,6 +29,8 @@ import java.io.IOException;
|
||||
public class DefaultModeSetter
|
||||
implements ModeSetter {
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(getClass());
|
||||
|
||||
@Override
|
||||
public void setLastAccessedTime(File f, long t)
|
||||
throws IOException {
|
||||
@@ -36,7 +41,7 @@ public class DefaultModeSetter
|
||||
public void setLastModifiedTime(File f, long t)
|
||||
throws IOException {
|
||||
if (!f.setLastModified(t * 1000))
|
||||
throw new IOException("Error setting last modified time for " + f);
|
||||
log.warn("Could not set last modified time for {} to {}", f, t);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -49,7 +54,7 @@ public class DefaultModeSetter
|
||||
final boolean x = f.setExecutable(FilePermission.USR_X.isIn(perms),
|
||||
!(FilePermission.OTH_X.isIn(perms) || FilePermission.GRP_X.isIn(perms)));
|
||||
if (!(r && w && x))
|
||||
throw new IOException("Error setting permissions for " + f);
|
||||
log.warn("Could not set permissions for {} to {}", f, Integer.toString(perms, 16));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user