diff options
author | rsc <devnull@localhost> | 2007-03-26 13:38:36 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-03-26 13:38:36 +0000 |
commit | 314f5742af1a79fcc6143b6dd804f0593ab0f8da (patch) | |
tree | f6c18dc22fd2558f335e763e4cfa69871ad77e3f /src/cmd/mk | |
parent | 63b581e320827ef84345d36d8b75d15a524cbf34 (diff) | |
download | plan9port-314f5742af1a79fcc6143b6dd804f0593ab0f8da.tar.gz plan9port-314f5742af1a79fcc6143b6dd804f0593ab0f8da.tar.bz2 plan9port-314f5742af1a79fcc6143b6dd804f0593ab0f8da.zip |
better rc detection (Michael Teichgräber)
Diffstat (limited to 'src/cmd/mk')
-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; |