chmod instead of fchmod

This commit is contained in:
Florian Dold 2016-04-25 21:30:13 +02:00
parent 4656f7f883
commit 34f9900f66

View File

@ -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;