cmd_edit - we do not need fstat() for detecting changes on the temporary file feature/dav-edit

Sat, 28 Mar 2020 15:58:30 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 28 Mar 2020 15:58:30 +0100
branch
feature/dav-edit
changeset 710
7384da29c2b4
parent 709
857330e1e3f4
child 711
8d40b5ccc43e

cmd_edit - we do not need fstat() for detecting changes on the temporary file

dav/main.c file | annotate | diff | comparison | revisions
--- a/dav/main.c	Sat Mar 28 15:53:44 2020 +0100
+++ b/dav/main.c	Sat Mar 28 15:58:30 2020 +0100
@@ -1203,7 +1203,6 @@
     
     // remember time s.t. we can later check if the file has changed
     SYS_STAT tmp_stat;
-    // TODO: maybe add sys_fstat
     if(sys_stat(outfile, &tmp_stat)) {
         perror("Cannot stat temporary file");
         close(tmp_fd);

mercurial