Linux, modified file timestamp is different from current time

I am having problems with the modified files modified date. The problem is that whenever I modify a file, the date of the change is set a few minutes earlier than the current date.

touch a  
ls -l a
-rw-r--r-- 1 user group 0 2012-09-02 10:49 a

date
Sun Sep  2 10:46:07 IRDT 2012

This seems to cause problems when I want to do make

make[1]: *** File `Makefile' has modification time in the future

This is on the debian system with which I am connecting to ssh and I do not have root access.

Any ideas?

+5
source share
1 answer

If your sysadmin cannot fix this anytime soon and you don’t have root, you can simply manually touch the file with a specific date (-t).

+1
source

All Articles