Some assorted fixes found in the "Issues" and "Pull requests" sections of the rdesktop github site:
- add patch fix_C99_issue_in_configure.patch to fix detection of statvfs64
- add patch fix_dashes_in_manpage.patch to prevent dashes from being utf8 mangled
- add patch fix_segfault_in_utils_cert_handle_exception.patch
- add patch fix_wrong_string_null_terminated.patch to null-terminate
the correct variable
- adjust patch rdesktop-fix_pkgconfig_check.patch so it can be applied with "-p1"
- minor spec cleanup
OBS-URL: https://build.opensuse.org/request/show/1138147
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/rdesktop?expand=0&rev=53
15 lines
538 B
Diff
15 lines
538 B
Diff
Extracted from Github pull request #375, and fixed to
|
|
use tmppath twice as variable name and for sizeof().
|
|
|
|
--- rdesktop-1.9.0/rdesktop.c.orig 2019-09-11 16:33:07.000000000 +0200
|
|
+++ rdesktop-1.9.0/rdesktop.c 2024-01-11 14:42:25.416099137 +0100
|
|
@@ -1986,7 +1986,7 @@ save_licence(unsigned char *data, int le
|
|
path[sizeof(path) - 1] = '\0';
|
|
|
|
snprintf(tmppath, PATH_MAX, "%s.new", path);
|
|
- path[sizeof(path) - 1] = '\0';
|
|
+ tmppath[sizeof(tmppath) - 1] = '\0';
|
|
|
|
fd = open(tmppath, O_WRONLY | O_CREAT | O_TRUNC, 0600);
|
|
if (fd == -1)
|