features: Now it will add xattrs support to an specific directory (instead of the...
[rrq/fuse_xattrs.git] / utils.c
diff --git a/utils.c b/utils.c
index ccb84b58f71357e68f518b88fe29d0b29c43af60..1a05447a43f7e01211dec229a9cbf343a6e25958 100644 (file)
--- a/utils.c
+++ b/utils.c
 #include "utils.h"
 #include "const.h"
 
+char *prepend_source_directory(const char *a, const char *b) {
+    size_t len = strlen(a) + strlen(b) + 1;
+    char *dst = (char*) malloc(sizeof(char) * len);
+    sprintf(dst, "%s%s", a, b);
+
+    return dst;
+}
 
 char *get_sidecar_path(const char *path)
 {