diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 42d7b7606936..af3783fff1de 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1380,7 +1380,7 @@ static int may_delete(struct inode *dir,struct dentry *victim,int isdir) | |||
1380 | if (IS_APPEND(dir)) | 1380 | if (IS_APPEND(dir)) |
1381 | return -EPERM; | 1381 | return -EPERM; |
1382 | if (check_sticky(dir, victim->d_inode)||IS_APPEND(victim->d_inode)|| | 1382 | if (check_sticky(dir, victim->d_inode)||IS_APPEND(victim->d_inode)|| |
1383 | IS_IMMUTABLE(victim->d_inode)) | 1383 | IS_IMMUTABLE(victim->d_inode) || IS_SWAPFILE(victim->d_inode)) |
1384 | return -EPERM; | 1384 | return -EPERM; |
1385 | if (isdir) { | 1385 | if (isdir) { |
1386 | if (!S_ISDIR(victim->d_inode->i_mode)) | 1386 | if (!S_ISDIR(victim->d_inode->i_mode)) |