X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=gnu%2Ffchown-stub.c;fp=gnu%2Ffchown-stub.c;h=1611b1d95917bf3f029b1851c48332f1dc3b1d78;hb=22f1eb8bc17e5be72dd23d42d6aaa60196ac22e6;hp=0000000000000000000000000000000000000000;hpb=00fa13ff3f2d5b6e2a94c5e948c38616ff7ad37a;p=tar diff --git a/gnu/fchown-stub.c b/gnu/fchown-stub.c new file mode 100644 index 0000000..1611b1d --- /dev/null +++ b/gnu/fchown-stub.c @@ -0,0 +1,18 @@ +/* -*- buffer-read-only: t -*- vi: set ro: */ +/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ +#include + +#include +#include + +/* 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; +}