diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 38d140fef..52847a1f0 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -811,7 +811,7 @@ main (int argc, fh = GNUNET_NETWORK_get_fd (nh); - if (0 != fchmod (fh, unixpath_mode)) + if (0 != chmod (unixpath, unixpath_mode)) { fprintf (stderr, "chmod failed: %s\n", strerror (errno)); return 1;