diff options
Diffstat (limited to 'lib/fchown-stub.c')
-rw-r--r-- | lib/fchown-stub.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/fchown-stub.c b/lib/fchown-stub.c new file mode 100644 index 000000000..6e7c4f925 --- /dev/null +++ b/lib/fchown-stub.c @@ -0,0 +1,14 @@ +#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; +} |