aboutsummaryrefslogtreecommitdiff
path: root/lib/fs.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-04-19 00:35:25 -0400
committerGitHub <noreply@github.com>2020-04-19 00:35:25 -0400
commit57c9489b28a481abc078ad3a2dd197079f9c414b (patch)
tree12cc1ea0186b242a82d87bc2f62142e5decefedb /lib/fs.c
parent59f7d29e2d707373ba1153337dca3279a2e3acc5 (diff)
parent8cdddbb0f1a8c6eb023cbe732e5701240a54ff3c (diff)
downloadspmc-57c9489b28a481abc078ad3a2dd197079f9c414b.tar.gz
Merge pull request #25 from jhunkeler/error-handler-etc
Error handler etc
Diffstat (limited to 'lib/fs.c')
-rw-r--r--lib/fs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/fs.c b/lib/fs.c
index 3ba01e7..20a5999 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -624,7 +624,6 @@ char *spm_mkdtemp(const char *base, const char *name, const char *extended_path)
path_stat = stat(path, &st);
if (path_stat < 0) {
if ((fp = fopen(path, "w+")) == NULL) {
- perror(path);
return -1;
}
fclose(fp);
@@ -632,7 +631,6 @@ char *spm_mkdtemp(const char *base, const char *name, const char *extended_path)
if ((S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) > 0) {
if (utime(path, NULL) < 0) {
// failed to set file time
- perror(path);
return -1;
}
// updated file time