~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to fs/stat.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        int error = -EINVAL;
76
76
        int lookup_flags = 0;
77
77
 
78
 
        if ((flag & ~(AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT)) != 0)
 
78
        if ((flag & ~(AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT |
 
79
                      AT_EMPTY_PATH)) != 0)
79
80
                goto out;
80
81
 
81
82
        if (!(flag & AT_SYMLINK_NOFOLLOW))
82
83
                lookup_flags |= LOOKUP_FOLLOW;
83
84
        if (flag & AT_NO_AUTOMOUNT)
84
85
                lookup_flags |= LOOKUP_NO_AUTOMOUNT;
 
86
        if (flag & AT_EMPTY_PATH)
 
87
                lookup_flags |= LOOKUP_EMPTY;
85
88
 
86
89
        error = user_path_at(dfd, filename, lookup_flags, &path);
87
90
        if (error)
297
300
        if (bufsiz <= 0)
298
301
                return -EINVAL;
299
302
 
300
 
        error = user_path_at(dfd, pathname, 0, &path);
 
303
        error = user_path_at(dfd, pathname, LOOKUP_EMPTY, &path);
301
304
        if (!error) {
302
305
                struct inode *inode = path.dentry->d_inode;
303
306