Improve comment of snapshot_currently_being_removed.
[dss.git] / ipc.c
diff --git a/ipc.c b/ipc.c
index 183c76e9b4ad0b46ee2910207f12626fbb7087ca..9b38c1318541d24a5686c76eccfc330a3a204177 100644 (file)
--- a/ipc.c
+++ b/ipc.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
 #include <sys/wait.h>
 #include <stdio.h>
 #include <inttypes.h>
@@ -203,7 +205,7 @@ static int dss_realpath(const char *name, char **resolved_path)
 
                                /* Careful here, end may be a pointer into extra_buf... */
                                memmove(&extra_buf[n], end, len + 1);
-                               name = end = memcpy(extra_buf, buf, n);
+                               end = memcpy(extra_buf, buf, n);
 
                                if (buf[0] == '/') /* It's an absolute symlink */
                                        dest = rpath + 1;