Mercurial > hg > octave-kai > gnulib-hg
annotate 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 |
rev | line source |
---|---|
7302
8a1a9361108c
* _fpending.c: Include <config.h> unconditionally, since we no
Paul Eggert <eggert@cs.ucla.edu>
parents:
6259
diff
changeset
|
1 #include <config.h> |
8a1a9361108c
* _fpending.c: Include <config.h> unconditionally, since we no
Paul Eggert <eggert@cs.ucla.edu>
parents:
6259
diff
changeset
|
2 |
5101 | 3 #include <sys/types.h> |
4 #include <errno.h> | |
5 | |
6 /* A trivial substitute for `fchown'. | |
7 | |
8 DJGPP 2.03 and earlier (and perhaps later) don't have `fchown', | |
9 so we pretend no-one has permission for this operation. */ | |
10 | |
11 int | |
12 fchown (int fd, uid_t uid, gid_t gid) | |
13 { | |
14 errno = EPERM; | |
15 return -1; | |
16 } |