+ if (secname == NULL)
+ return 0;
+
+ /* Checking that times in past get updated on another client. */
+ rc = stat(secname, &st2);
+ if (rc) {
+ fprintf(stderr, "%s: second stat(%s) failed: rc %d: %s\n",
+ prog, secname, errno, strerror(errno));
+ return 12;
+ }
+
+ if (st2.st_mtime != st.st_mtime) {
+ fprintf(stderr, "%s: not synced mtime(%s) between clients: "
+ "%lu should be %lu\n", prog, secname,
+ st2.st_mtime, st.st_mtime);
+ return 13;
+ }
+
+ if (st2.st_ctime != st.st_ctime) {
+ fprintf(stderr, "%s: not synced ctime(%s) between clients: "
+ "%lu should be %lu\n", prog, secname,
+ st2.st_ctime, st.st_ctime);
+ return 14;
+ }
+
+ printf("%s: updated times for %s\n", prog, secname);
+