-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jamie Curnow
committed
Oct 17, 2019
0 parents
commit 9f18144
Showing
12 changed files
with
1,351 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.idea | ||
._* | ||
.DS_Store | ||
RPMS | ||
SRPMS | ||
DEPS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
@Library('jc21') _ | ||
|
||
pipeline { | ||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '10')) | ||
disableConcurrentBuilds() | ||
} | ||
agent { | ||
label 'rpm' | ||
} | ||
stages { | ||
stage('Prepare') { | ||
steps { | ||
sh 'docker pull ${DOCKER_CI_TOOLS}' | ||
} | ||
} | ||
stage('Build') { | ||
steps { | ||
ansiColor('xterm') { | ||
sh './build 7' | ||
} | ||
} | ||
} | ||
stage('Sign') { | ||
steps { | ||
ansiColor('xterm') { | ||
rpmSign() | ||
} | ||
} | ||
} | ||
stage('Publish') { | ||
steps { | ||
dir(path: 'RPMS') { | ||
archiveArtifacts(artifacts: '**/*/*.rpm', caseSensitive: true, onlyIfSuccessful: true) | ||
} | ||
dir(path: 'SRPMS') { | ||
archiveArtifacts(artifacts: '**/*.src.rpm', caseSensitive: true, onlyIfSuccessful: true, allowEmptyArchive: true) | ||
} | ||
rpmGithubRelease('centos7') | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
juxtapose event: 'success' | ||
sh 'figlet "SUCCESS"' | ||
} | ||
failure { | ||
juxtapose event: 'failure' | ||
sh 'figlet "FAILURE"' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
@Library('jc21') _ | ||
|
||
pipeline { | ||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '10')) | ||
disableConcurrentBuilds() | ||
} | ||
agent { | ||
label 'rpm' | ||
} | ||
stages { | ||
stage('Prepare') { | ||
steps { | ||
sh 'docker pull ${DOCKER_CI_TOOLS}' | ||
} | ||
} | ||
stage('Build') { | ||
steps { | ||
ansiColor('xterm') { | ||
sh './build 8' | ||
} | ||
} | ||
} | ||
stage('Sign') { | ||
steps { | ||
ansiColor('xterm') { | ||
rpmSign() | ||
} | ||
} | ||
} | ||
stage('Publish') { | ||
steps { | ||
dir(path: 'RPMS') { | ||
archiveArtifacts(artifacts: '**/*/*.rpm', caseSensitive: true, onlyIfSuccessful: true) | ||
} | ||
dir(path: 'SRPMS') { | ||
archiveArtifacts(artifacts: '**/*.src.rpm', caseSensitive: true, onlyIfSuccessful: true, allowEmptyArchive: true) | ||
} | ||
rpmGithubRelease('centos8') | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
juxtapose event: 'success' | ||
sh 'figlet "SUCCESS"' | ||
} | ||
failure { | ||
juxtapose event: 'failure' | ||
sh 'figlet "FAILURE"' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# [ntfs-3g](https://sourceforge.net/projects/ntfs-3g/) | ||
|
||
Builds for Centos 7/8 hosted on [yum.jc21.com](https://yum.jc21.com) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- libntfs-3g/volume.c.ref 2017-03-23 10:42:44.000000000 +0100 | ||
+++ libntfs-3g/volume.c 2017-12-20 08:11:51.842424300 +0100 | ||
@@ -959,7 +959,8 @@ | ||
vol->mftmirr_size = l; | ||
} | ||
ntfs_log_debug("Comparing $MFTMirr to $MFT...\n"); | ||
- for (i = 0; i < vol->mftmirr_size; ++i) { | ||
+ /* Windows 10 does not update the full $MFTMirr any more */ | ||
+ for (i = 0; (i < vol->mftmirr_size) && (i < FILE_first_user); ++i) { | ||
MFT_RECORD *mrec, *mrec2; | ||
const char *ESTR[12] = { "$MFT", "$MFTMirr", "$LogFile", | ||
"$Volume", "$AttrDef", "root directory", "$Bitmap", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
diff -up ntfs-3g_ntfsprogs-2017.3.23/src/lowntfs-3g.c.CVE-2019-9755 ntfs-3g_ntfsprogs-2017.3.23/src/lowntfs-3g.c | ||
--- ntfs-3g_ntfsprogs-2017.3.23/src/lowntfs-3g.c.CVE-2019-9755 2019-03-29 16:08:22.359920075 -0400 | ||
+++ ntfs-3g_ntfsprogs-2017.3.23/src/lowntfs-3g.c 2019-03-29 16:08:28.237794169 -0400 | ||
@@ -4323,7 +4323,8 @@ int main(int argc, char *argv[]) | ||
else { | ||
ctx->abs_mnt_point = (char*)ntfs_malloc(PATH_MAX); | ||
if (ctx->abs_mnt_point) { | ||
- if (getcwd(ctx->abs_mnt_point, | ||
+ if ((strlen(opts.mnt_point) < PATH_MAX) | ||
+ && getcwd(ctx->abs_mnt_point, | ||
PATH_MAX - strlen(opts.mnt_point) - 1)) { | ||
strcat(ctx->abs_mnt_point, "/"); | ||
strcat(ctx->abs_mnt_point, opts.mnt_point); | ||
@@ -4331,6 +4332,9 @@ int main(int argc, char *argv[]) | ||
/* Solaris also wants the absolute mount point */ | ||
opts.mnt_point = ctx->abs_mnt_point; | ||
#endif /* defined(__sun) && defined (__SVR4) */ | ||
+ } else { | ||
+ free(ctx->abs_mnt_point); | ||
+ ctx->abs_mnt_point = (char*)NULL; | ||
} | ||
} | ||
} | ||
diff -up ntfs-3g_ntfsprogs-2017.3.23/src/ntfs-3g.c.CVE-2019-9755 ntfs-3g_ntfsprogs-2017.3.23/src/ntfs-3g.c | ||
--- ntfs-3g_ntfsprogs-2017.3.23/src/ntfs-3g.c.CVE-2019-9755 2019-03-29 16:08:54.691227528 -0400 | ||
+++ ntfs-3g_ntfsprogs-2017.3.23/src/ntfs-3g.c 2019-03-29 16:09:40.362249397 -0400 | ||
@@ -4123,7 +4123,8 @@ int main(int argc, char *argv[]) | ||
else { | ||
ctx->abs_mnt_point = (char*)ntfs_malloc(PATH_MAX); | ||
if (ctx->abs_mnt_point) { | ||
- if (getcwd(ctx->abs_mnt_point, | ||
+ if ((strlen(opts.mnt_point) < PATH_MAX) | ||
+ && getcwd(ctx->abs_mnt_point, | ||
PATH_MAX - strlen(opts.mnt_point) - 1)) { | ||
strcat(ctx->abs_mnt_point, "/"); | ||
strcat(ctx->abs_mnt_point, opts.mnt_point); | ||
@@ -4131,6 +4132,9 @@ int main(int argc, char *argv[]) | ||
/* Solaris also wants the absolute mount point */ | ||
opts.mnt_point = ctx->abs_mnt_point; | ||
#endif /* defined(__sun) && defined (__SVR4) */ | ||
+ } else { | ||
+ free(ctx->abs_mnt_point); | ||
+ ctx->abs_mnt_point = (char*)NULL; | ||
} | ||
} | ||
} |
Oops, something went wrong.