~ken-vandine/ubuntu/natty/nfs-utils/1.2.2-4ubuntu1

« back to all changes in this revision

Viewing changes to utils/mountd/cache.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings
  • Date: 2010-08-27 00:11:44 UTC
  • Revision ID: james.westby@ubuntu.com-20100827001144-ko428gbq8aa78tjn
Tags: 1:1.2.2-4
* mountd: fix path comparison for v4 crossmnt (Closes: #578317)
* nfs-common.init: Ignore empty and commented-out fstab lines, thanks
  to Cristian Ionescu-Idbohrn (Closes: #587329)

Show diffs side-by-side

added added

removed removed

Lines of Context:
619
619
        int l = strlen(path);
620
620
 
621
621
        return strcmp(subpath, path) == 0
622
 
                || (strncmp(subpath, path, l) == 0 && path[l] == '/');
 
622
                || (strncmp(subpath, path, l) == 0 && subpath[l] == '/');
623
623
}
624
624
 
625
625
static int path_matches(nfs_export *exp, char *path)