# compiles staterror all: gcc staterror.c -o staterror -lsmbclient # staterror will first display the stat time results of the file you specify in the parameter # and then display the stat time results of staterror.c (local file) ## example output from us ## ############################ #./staterror smb://10.168.1.133/Data/Niva.txt #SAMBA # mtime:1134731039/Fri Dec 16 12:03:59 2005 # ctime:1134052334/Thu Dec 8 15:32:14 2005 # atime:1/Thu Jan 1 01:00:01 1970 # #LOCAL # mtime:1134744105/Fri Dec 16 15:41:45 2005 # ctime:1134744105/Fri Dec 16 15:41:45 2005 # atime:1134744368/Fri Dec 16 15:46:08 2005 ############################ # atime is clearly incorrect on the samba file