don't update the mod-time when a file is opened for writing.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4384
dc483132-0cff-0310-8789-
dd5450dbe970
Thu Sep 29 15:52:22 1994 Theodore Y. Ts'o (tytso@dcl)
+ * dump.c (update_ok_file): Make sure mod time on the dump_ok file
+ is updated. (Some systems don't update the mod-time when
+ a file is opened for writing.)
+
* Makefile.in: Relink executable when libraries change.
* kdb5_edit.c (show_principal): Pass variable with correct type to
free(file_ok);
return;
}
+ if (write(fd, "", 1) != 1) {
+ com_err(progname, errno, "while writing to 'ok' file, '%s'",
+ file_ok);
+ exit_status++;
+ free(file_ok);
+ return;
+ }
+
free(file_ok);
close(fd);
return;