Skip to content
Snippets Groups Projects
Commit f03c720a authored by rswindell's avatar rswindell
Browse files

Update to ftouch(), return FALSE if utime() fails (returns non-zero).

parent d9637586
No related branches found
No related tags found
No related merge requests found
...@@ -117,9 +117,7 @@ BOOL ftouch(const char* fname) ...@@ -117,9 +117,7 @@ BOOL ftouch(const char* fname)
close(file); close(file);
} }
/* update the time stamp */ /* update the time stamp */
utime(fname,NULL); return utime(fname,NULL)==0;
return(TRUE);
} }
BOOL fmutex(const char* fname, const char* text, long max_age) BOOL fmutex(const char* fname, const char* text, long max_age)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment