diff options
author | rsc <devnull@localhost> | 2005-02-20 22:51:24 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-20 22:51:24 +0000 |
commit | d24aad8fd74f6b3fb6fab8eb9ee4e4cf0d6a3a40 (patch) | |
tree | db89257970d8a02f32a1a2acd0022a4244c2f31d | |
parent | 3e1960ce9ea541b4bb70509c7b1915e88bfe69ed (diff) | |
download | plan9port-d24aad8fd74f6b3fb6fab8eb9ee4e4cf0d6a3a40.tar.gz plan9port-d24aad8fd74f6b3fb6fab8eb9ee4e4cf0d6a3a40.tar.bz2 plan9port-d24aad8fd74f6b3fb6fab8eb9ee4e4cf0d6a3a40.zip |
bug fix from lucho
-rw-r--r-- | src/cmd/vac/vac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c index ff977235..fbb4a51b 100644 --- a/src/cmd/vac/vac.c +++ b/src/cmd/vac/vac.c @@ -686,9 +686,8 @@ vacmerge(DirSink *dsink, char *lname, char *sname) VacDir dir; uvlong max; - p = strrchr(sname, '.'); - if(p == 0 || strcmp(p, ".vac")) - return 0; + if((p=strrchr(sname, '.') == nil || strcmp(p, ".vac") != 0) + return -1; d = nil; fs = vacfsopen(dsink->sink->z, sname, VtOREAD, 100); |