summaryrefslogtreecommitdiff
path: root/uhttpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'uhttpd.c')
-rw-r--r--uhttpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uhttpd.c b/uhttpd.c
index f9ac3db..0d6eb9a 100644
--- a/uhttpd.c
+++ b/uhttpd.c
@@ -1035,7 +1035,7 @@ int main (int argc, char **argv)
/* docroot */
case 'h':
- if (! realpath(optarg, conf.docroot))
+ if (! uh_realpath(optarg, conf.docroot))
{
fprintf(stderr, "Error: Invalid directory %s: %s\n",
optarg, strerror(errno));
@@ -1266,7 +1266,7 @@ int main (int argc, char **argv)
}
/* default docroot */
- if (!conf.docroot[0] && !realpath(".", conf.docroot))
+ if (!conf.docroot[0] && !uh_realpath(".", conf.docroot))
{
fprintf(stderr, "Error: Can not determine default document root: %s\n",
strerror(errno));