summaryrefslogtreecommitdiff
path: root/lib/fchown-stub.c
blob: beb336cafa151418b2d5701010eb1e7ec3dedc8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <config.h>
#include <sys/types.h>
#include <errno.h>

/* A trivial substitute for `fchown'.

   DJGPP 2.03 and earlier (and perhaps later) don't have `fchown',
   so we pretend no-one has permission for this operation. */

int
fchown (int fd, uid_t uid, gid_t gid)
{
  errno = EPERM;
  return -1;
}