aports/testing/ocfs2-tools/fix-implicit-basename.patch
2024-07-11 16:54:55 +02:00

88 lines
3.4 KiB
Diff

diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/fswreck/main.c ocfs2-tools-ocfs2-tools-1.8.7/fswreck/main.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/fswreck/main.c 2024-07-11 21:14:55.956135394 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/fswreck/main.c 2024-07-11 21:15:04.046154578 +0200
@@ -23,6 +23,7 @@
*/
#include "main.h"
+#include <libgen.h>
char *progname = NULL;
diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/libocfs2/dlm.c ocfs2-tools-ocfs2-tools-1.8.7/libocfs2/dlm.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/libocfs2/dlm.c 2024-07-11 21:14:55.959468736 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/libocfs2/dlm.c 2024-07-11 21:15:24.809537148 +0200
@@ -27,6 +27,7 @@
#define _LARGEFILE64_SOURCE
#include "ocfs2/ocfs2.h"
+#include <libgen.h>
#define DEFAULT_DLMFS_PATH "/dlm/"
diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/libtools-internal/verbose.c ocfs2-tools-ocfs2-tools-1.8.7/libtools-internal/verbose.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/libtools-internal/verbose.c 2024-07-11 21:14:55.959468736 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/libtools-internal/verbose.c 2024-07-11 21:15:04.046154578 +0200
@@ -25,6 +25,7 @@
#include <string.h>
#include <ctype.h>
#include <limits.h>
+#include <libgen.h>
#include <et/com_err.h>
#include <inttypes.h>
diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/listuuid/listuuid.c ocfs2-tools-ocfs2-tools-1.8.7/listuuid/listuuid.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/listuuid/listuuid.c 2024-07-11 21:14:55.959468736 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/listuuid/listuuid.c 2024-07-11 21:16:49.343070937 +0200
@@ -31,6 +31,7 @@
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
+#include <libgen.h>
#include <linux/fd.h>
#include <string.h>
#include <sys/stat.h>
diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/mkfs.ocfs2/mkfs.c ocfs2-tools-ocfs2-tools-1.8.7/mkfs.ocfs2/mkfs.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/mkfs.ocfs2/mkfs.c 2024-07-11 21:14:55.959468736 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/mkfs.ocfs2/mkfs.c 2024-07-11 21:16:27.816353224 +0200
@@ -19,6 +19,7 @@
*/
#include "mkfs.h"
+#include <libgen.h>
static State *get_state(int argc, char **argv);
static void free_state(State *s);
diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/o2cb_ctl/o2cbtool.c ocfs2-tools-ocfs2-tools-1.8.7/o2cb_ctl/o2cbtool.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/o2cb_ctl/o2cbtool.c 2024-07-11 21:14:55.962802077 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/o2cb_ctl/o2cbtool.c 2024-07-11 21:16:35.589704990 +0200
@@ -18,6 +18,7 @@
*/
#include "o2cbtool.h"
+#include <libgen.h>
char *progname = "o2cbtool";
const char *stackname = "o2cb";
diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/debugfs.ocfs2/main.c ocfs2-tools-ocfs2-tools-1.8.7/debugfs.ocfs2/main.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/debugfs.ocfs2/main.c 2024-07-11 21:18:05.593259034 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/debugfs.ocfs2/main.c 2024-07-11 21:18:21.953300063 +0200
@@ -28,6 +28,7 @@
#include "main.h"
#include <sys/types.h>
#include <dirent.h>
+#include <libgen.h>
#define PROMPT "debugfs: "
diff -upr ocfs2-tools-ocfs2-tools-1.8.7.orig/mount.ocfs2/mount.ocfs2.c ocfs2-tools-ocfs2-tools-1.8.7/mount.ocfs2/mount.ocfs2.c
--- ocfs2-tools-ocfs2-tools-1.8.7.orig/mount.ocfs2/mount.ocfs2.c 2024-07-11 21:19:25.793460165 +0200
+++ ocfs2-tools-ocfs2-tools-1.8.7/mount.ocfs2/mount.ocfs2.c 2024-07-11 21:19:57.420206147 +0200
@@ -23,6 +23,7 @@
*/
#include "mount.ocfs2.h"
+#include <libgen.h>
#define OCFS2_CLUSTER_STACK_ARG "cluster_stack="