projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adjust spec file to work with btrfs-progs v4.16.1
[platform/upstream/btrfs-progs.git]
/
cmds-fi-du.c
diff --git
a/cmds-fi-du.c
b/cmds-fi-du.c
index
8a44665
..
7e6bb7f
100644
(file)
--- a/
cmds-fi-du.c
+++ b/
cmds-fi-du.c
@@
-449,7
+449,7
@@
static int du_add_file(const char *filename, int dirfd,
}
pathtmp = pathp;
- if (pathp == path)
+ if (pathp == path
|| *(pathp - 1) == '/'
)
ret = sprintf(pathp, "%s", filename);
else
ret = sprintf(pathp, "/%s", filename);