[go: up one dir, main page]

File: fchown-stub.c

package info (click to toggle)
coreutils 8.30-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 55,016 kB
  • sloc: ansic: 184,556; sh: 24,897; perl: 7,361; yacc: 1,843; makefile: 194; python: 47; sed: 16
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;
}