File: fchown-stub.c

package info (click to toggle)
patch 2.7.6-3%2Bdeb10u1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 6,988 kB
  • sloc: ansic: 40,033; sh: 6,547; yacc: 1,842; makefile: 140; sed: 54
file content (16 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (36)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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;
}