view lib/fchown-stub.c @ 11639:b2e769838448

hash: fix memory leak in last patch * lib/hash.c (hash_rehash): Avoid memory leak. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Thu, 18 Jun 2009 15:24:38 -0600
parents 8a1a9361108c
children 18a38c9615f0
line wrap: on
line source

#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;
}