summaryrefslogtreecommitdiff
path: root/lib/replace/replace.c
diff options
context:
space:
mode:
authorIvo De Decker <ivo.dedecker@ugent.be>2013-05-10 13:34:01 +0200
committerIvo De Decker <ivo.dedecker@ugent.be>2013-05-10 13:34:01 +0200
commit1230d750f743f04cf199ee165072497f3abcd31f (patch)
tree491bc9f50143b0129490c1745f0002632ced64a2 /lib/replace/replace.c
parent31202ad025bcdeb2585d18dc3f4641b5cf9c0ec4 (diff)
downloadsamba-1230d750f743f04cf199ee165072497f3abcd31f.tar.gz
Imported Upstream version 4.0.3+dfsg1upstream/4.0.3+dfsg1
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r--lib/replace/replace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index f37d69f365..37edb310c5 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -405,7 +405,7 @@ int rep_mkstemp(char *template)
mktemp(template);
if (template[0] == 0)
return -1;
- return open(p, O_CREAT|O_EXCL|O_RDWR, 0600);
+ return open(template, O_CREAT|O_EXCL|O_RDWR, 0600);
}
#endif
@@ -785,7 +785,7 @@ char *rep_get_current_dir_name(void)
}
#endif
-#if !defined(HAVE_STRERROR_R) && !defined(strerror_r)
+#ifndef HAVE_STRERROR_R
int rep_strerror_r(int errnum, char *buf, size_t buflen)
{
char *s = strerror(errnum);