URL:
<http://savannah.gnu.org/bugs/?33724>
Summary: Find command is changing the access time of
directory
Project: findutils
Submitted by: nbhadauria
Submitted on: Thu 07 Jul 2011 07:41:04 AM GMT
Category: find
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: UNICON
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.27
Fixed Release: None
_______________________________________________________
Details:
I am using find command to find directory not been accessed from 90 days.
for first time it works fine then i found it change the access time of
folder.
ex.
[root@mail ~]# date
Thu Jul 7 13:01:45 IST 2011
[root@mail ~]# stat find /mailbox/vmail/nbhadauria/Maildir/cur
stat: cannot stat `find': No such file or directory
File: `/mailbox/vmail/nbhadauria/Maildir/cur'
Size: 581632 Blocks: 1152 IO Block: 4096 directory
Device: 811h/2065d Inode: 15433801 Links: 2
Access: (0700/drwx------) Uid: (11184/ vmail) Gid: ( 2110/ vmail)
Access: 2011-07-07 13:00:46.000000000 +0530
Modify: 2011-07-07 12:49:46.000000000 +0530
Change: 2011-07-07 12:49:46.000000000 +0530
[root@mail ~]# find /mailbox/vmail/*/Maildir/cur -type d -atime +90 -print
[root@mail ~]# stat find /mailbox/vmail/nbhadauria/Maildir/cur
stat: cannot stat `find': No such file or directory
File: `/mailbox/vmail/nbhadauria/Maildir/cur'
Size: 581632 Blocks: 1152 IO Block: 4096 directory
Device: 811h/2065d Inode: 15433801 Links: 2
Access: (0700/drwx------) Uid: (11184/ vmail) Gid: ( 2110/ vmail)
Access: 2011-07-07 13:05:56.000000000 +0530
Modify: 2011-07-07 12:49:46.000000000 +0530
Change: 2011-07-07 12:49:46.000000000 +0530
[root@mail ~]# date
Thu Jul 7 13:06:22 IST 2011
As you can see The Access time is changed..
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33724>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/