chmod instead of fchmod
This commit is contained in:
parent
4656f7f883
commit
34f9900f66
@ -811,7 +811,7 @@ main (int argc,
|
|||||||
|
|
||||||
fh = GNUNET_NETWORK_get_fd (nh);
|
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));
|
fprintf (stderr, "chmod failed: %s\n", strerror (errno));
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user