lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1461594007-6077-1-git-send-email-salah.triki@acm.org>
Date:	Mon, 25 Apr 2016 15:20:07 +0100
From:	Salah Triki <salah.triki@....org>
To:	tigran@...azian.fsnet.co.uk
Cc:	salah.triki@....org, linux-kernel@...r.kernel.org
Subject: [PATCH V2] bfs: rename should update mtime

bfs_rename should update ctime and mtime on target.

Signed-off-by: Salah Triki <salah.triki@....org>
---
 fs/bfs/dir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c
index 3ec6113..c69f7dc 100644
--- a/fs/bfs/dir.c
+++ b/fs/bfs/dir.c
@@ -254,6 +254,7 @@ static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry,
 	if (new_inode) {
 		new_inode->i_ctime = CURRENT_TIME_SEC;
 		inode_dec_link_count(new_inode);
+		new_dir->i_ctime = new_dir->i_mtime = CURRENT_TIME_SEC;
 	}
 	mark_buffer_dirty_inode(old_bh, old_dir);
 	error = 0;
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ