projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix problems with '\' for except_pat.
[unix-history]
/
usr
/
src
/
usr.bin
/
rdist
/
expand.c
diff --git
a/usr/src/usr.bin/rdist/expand.c
b/usr/src/usr.bin/rdist/expand.c
index
dd78700
..
225d1f5
100644
(file)
--- a/
usr/src/usr.bin/rdist/expand.c
+++ b/
usr/src/usr.bin/rdist/expand.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char *sccsid = "@(#)expand.c 4.1
2 (Berkeley) 85/02/04
";
+static char *sccsid = "@(#)expand.c 4.1
3 (Berkeley) 85/04/03
";
#endif
#include "defs.h"
#endif
#include "defs.h"
@@
-50,8
+50,14
@@
expand(list, wh)
prnames(list);
}
prnames(list);
}
- if (wh == 0)
+ if (wh == 0) {
+ register char *cp;
+
+ for (nl = list; nl != NULL; nl = nl->n_next)
+ for (cp = nl->n_name; *cp; cp++)
+ *cp = *cp & TRIM;
return(list);
return(list);
+ }
which = wh;
path = tpathp = pathp = pathbuf;
which = wh;
path = tpathp = pathp = pathbuf;
@@
-557,7
+563,7
@@
addpath(c)
if (pathp >= lastpathp)
yyerror("Pathname too long");
else {
if (pathp >= lastpathp)
yyerror("Pathname too long");
else {
- *pathp++ = c;
+ *pathp++ = c
& TRIM
;
*pathp = '\0';
}
}
*pathp = '\0';
}
}