Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
391516d
)
Improved a comment.
author
Wayne Davison
<wayned@samba.org>
Thu, 12 Aug 2004 00:58:01 +0000
(
00:58
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 12 Aug 2004 00:58:01 +0000
(
00:58
+0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
829bad6
..
03134e9
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-664,10
+664,10
@@
int count_dir_elements(const char *p)
return cnt;
}
return cnt;
}
-/* Turns multiple adjacent slashes into a single slash
,
gets rid of "./"
- * elements
, collapses ".." elements except for those at the start of
- *
the string. If the resulting path would be empty, change it into a
- * ".". */
+/* Turns multiple adjacent slashes into a single slash
;
gets rid of "./"
+ * elements
; collapses ".." elements except for those at the start of the
+ *
string; removes a trailing slash. If the resulting name would be empty,
+ *
change it into a
".". */
unsigned int clean_fname(char *name)
{
char *limit = name - 1, *t = name, *f = name;
unsigned int clean_fname(char *name)
{
char *limit = name - 1, *t = name, *f = name;