diff options
| -rw-r--r-- | fs/namei.c | 2 | ||||
| -rw-r--r-- | include/linux/namei.h | 1 | 
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index f4788365ea2..09606fd83d5 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -739,7 +739,7 @@ static int follow_automount(struct path *path, unsigned flags,  	 * of the daemon to instantiate them before they can be used.  	 */  	if (!(flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY | -		     LOOKUP_OPEN | LOOKUP_CREATE)) && +		     LOOKUP_OPEN | LOOKUP_CREATE | LOOKUP_AUTOMOUNT)) &&  	    path->dentry->d_inode)  		return -EISDIR; diff --git a/include/linux/namei.h b/include/linux/namei.h index 76fe2c62ae7..e13dac7caab 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -48,6 +48,7 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND};   */  #define LOOKUP_FOLLOW		0x0001  #define LOOKUP_DIRECTORY	0x0002 +#define LOOKUP_AUTOMOUNT	0x0004  #define LOOKUP_PARENT		0x0010  #define LOOKUP_REVAL		0x0020  |