4 Commits
Author SHA1 Message Date
Robert Dower eb522b1dc9 archive repository 2025-08-07 13:27:50 -07:00
Patrick McCarty 53ce8b6d66 Remove trailing whitespace
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-08-30 17:56:16 +00:00
Arjan van de Ven 02b6820a3d deal with two error cases 2022-08-30 14:30:34 +00:00
Patrick McCarty f563c9a475 Fix style issues detected with clang-format v14
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2022-08-30 02:53:29 +00:00
7 changed files with 17 additions and 8 deletions
+7
View File
@@ -0,0 +1,7 @@
## DISCONTINUATION OF PROJECT.
This project will no longer be maintained by Intel.
Intel will not provide or guarantee development of or support for this project, including but not limited to, maintenance, bug fixes, new releases or updates. Patches to this project are no longer accepted by Intel. If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the community, please create your own fork of the project.
Contact: webadmin@linux.intel.com
+5 -3
View File
@@ -3,7 +3,7 @@
* All rights reserved * All rights reserved
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions * modification, are permitted providing that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
@@ -445,7 +445,7 @@ int make_bsdiff_delta(char *old_filename, char *new_filename, char *delta_filena
memset(&small_header, 0, sizeof(struct header_v21)); memset(&small_header, 0, sizeof(struct header_v21));
memcpy(&small_header.magic, BSDIFF_HDR_FULLDL, 8); memcpy(&small_header.magic, BSDIFF_HDR_FULLDL, 8);
efd = open(delta_filename, O_CREAT | O_EXCL | O_WRONLY, 00644); efd = open(delta_filename_unique, O_CREAT | O_EXCL | O_WRONLY, 00644);
if (efd < 0) { if (efd < 0) {
close(fd); close(fd);
return -1; return -1;
@@ -462,6 +462,7 @@ int make_bsdiff_delta(char *old_filename, char *new_filename, char *delta_filena
} }
fclose(pf); fclose(pf);
close(fd); close(fd);
rename(delta_filename_unique, delta_filename);
return 1; return 1;
} }
@@ -527,7 +528,7 @@ int make_bsdiff_delta(char *old_filename, char *new_filename, char *delta_filena
memset(&small_header, 0, sizeof(struct header_v21)); memset(&small_header, 0, sizeof(struct header_v21));
memcpy(&small_header.magic, BSDIFF_HDR_FULLDL, 8); memcpy(&small_header.magic, BSDIFF_HDR_FULLDL, 8);
efd = open(delta_filename, O_CREAT | O_EXCL | O_WRONLY, 00644); efd = open(delta_filename_unique, O_CREAT | O_EXCL | O_WRONLY, 00644);
if (efd < 0) { if (efd < 0) {
close(fd); close(fd);
munmap(old_data, old_size); munmap(old_data, old_size);
@@ -553,6 +554,7 @@ int make_bsdiff_delta(char *old_filename, char *new_filename, char *delta_filena
close(fd); close(fd);
munmap(old_data, old_size); munmap(old_data, old_size);
free(I); free(I);
rename(delta_filename_unique, delta_filename);
return 1; return 1;
} }
+1 -1
View File
@@ -4,7 +4,7 @@
* Copyright © 2012-2016 Intel Corporation. * Copyright © 2012-2016 Intel Corporation.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions * modification, are permitted providing that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
+1 -1
View File
@@ -4,7 +4,7 @@
* Copyright © 2012-2016 Intel Corporation. * Copyright © 2012-2016 Intel Corporation.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions * modification, are permitted providing that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
+1 -1
View File
@@ -3,7 +3,7 @@
* All rights reserved * All rights reserved
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions * modification, are permitted providing that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
+1 -1
View File
@@ -4,7 +4,7 @@
* Copyright © 2012-2016 Intel Corporation. * Copyright © 2012-2016 Intel Corporation.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions * modification, are permitted providing that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
+1 -1
View File
@@ -3,7 +3,7 @@
* All rights reserved * All rights reserved
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions * modification, are permitted providing that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.