diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/mk/rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/mk/rc.c b/src/cmd/mk/rc.c index 2407662f..a7bb0265 100644 --- a/src/cmd/mk/rc.c +++ b/src/cmd/mk/rc.c @@ -175,7 +175,7 @@ rcmatchname(char *name) { char *p; - if((p = strchr(name, '/')) != nil) + if((p = strrchr(name, '/')) != nil) name = p+1; if(name[0] == 'r' && name[1] == 'c') return 1; |