|
|
@@ -37,8 +37,8 @@ public class TarResource extends ArchiveResource { |
|
|
|
|
|
|
|
|
private String userName = ""; |
|
|
private String userName = ""; |
|
|
private String groupName = ""; |
|
|
private String groupName = ""; |
|
|
private int uid; |
|
|
|
|
|
private int gid; |
|
|
|
|
|
|
|
|
private long uid; |
|
|
|
|
|
private long gid; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Default constructor. |
|
|
* Default constructor. |
|
|
@@ -134,26 +134,44 @@ public class TarResource extends ArchiveResource { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @return the uid for the tar entry |
|
|
* @return the uid for the tar entry |
|
|
|
|
|
* @since 1.10.4 |
|
|
*/ |
|
|
*/ |
|
|
public int getUid() { |
|
|
|
|
|
|
|
|
public long getLongUid() { |
|
|
if (isReference()) { |
|
|
if (isReference()) { |
|
|
return getCheckedRef().getUid(); |
|
|
|
|
|
|
|
|
return getCheckedRef().getLongUid(); |
|
|
} |
|
|
} |
|
|
checkEntry(); |
|
|
checkEntry(); |
|
|
return uid; |
|
|
return uid; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @return the uid for the tar entry |
|
|
|
|
|
*/ |
|
|
|
|
|
@Deprecated |
|
|
|
|
|
public int getUid() { |
|
|
|
|
|
return (int) getLongUid(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @return the gid for the tar entry |
|
|
* @return the gid for the tar entry |
|
|
|
|
|
* @since 1.10.4 |
|
|
*/ |
|
|
*/ |
|
|
public int getGid() { |
|
|
|
|
|
|
|
|
public long getLongGid() { |
|
|
if (isReference()) { |
|
|
if (isReference()) { |
|
|
return getCheckedRef().getGid(); |
|
|
|
|
|
|
|
|
return getCheckedRef().getLongGid(); |
|
|
} |
|
|
} |
|
|
checkEntry(); |
|
|
checkEntry(); |
|
|
return gid; |
|
|
return gid; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @return the uid for the tar entry |
|
|
|
|
|
*/ |
|
|
|
|
|
@Deprecated |
|
|
|
|
|
public int getGid() { |
|
|
|
|
|
return (int) getLongGid(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* fetches information from the named entry inside the archive. |
|
|
* fetches information from the named entry inside the archive. |
|
|
*/ |
|
|
*/ |
|
|
@@ -194,8 +212,8 @@ public class TarResource extends ArchiveResource { |
|
|
setMode(e.getMode()); |
|
|
setMode(e.getMode()); |
|
|
userName = e.getUserName(); |
|
|
userName = e.getUserName(); |
|
|
groupName = e.getGroupName(); |
|
|
groupName = e.getGroupName(); |
|
|
uid = e.getUserId(); |
|
|
|
|
|
gid = e.getGroupId(); |
|
|
|
|
|
|
|
|
uid = e.getLongUserId(); |
|
|
|
|
|
gid = e.getLongGroupId(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |