bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] fchown-stub.c addition to gnulib


From: Paul Eggert
Subject: [Bug-gnulib] fchown-stub.c addition to gnulib
Date: Fri, 09 Jul 2004 23:31:48 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

The CVS version of GNU Tar wouldn't build because the latest
gl_PREREQ_CHOWN does a AC_LIBOBJ(fchown-stub) but there was no
lib/fchown-stub.c in gnulib.  I installed the following obvious
patch to migrate coreutils's fchown-stub.c into gnulib.

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnulib/gnulib/ChangeLog,v
retrieving revision 1.157
diff -p -u -r1.157 ChangeLog
--- ChangeLog   22 Jun 2004 18:28:11 -0000      1.157
+++ ChangeLog   10 Jul 2004 06:27:54 -0000
@@ -1,3 +1,8 @@
+2004-07-09  Paul Eggert  <address@hidden>
+
+       * modules/chown (Files): Add lib/fchown-stub.c, since
+       gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
+
 2004-06-22  Paul Eggert  <address@hidden>
 
        * modules/argz: Omit "#include".
Index: lib/ChangeLog
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/ChangeLog,v
retrieving revision 1.672
diff -p -u -r1.672 ChangeLog
--- lib/ChangeLog       24 Jun 2004 06:05:19 -0000      1.672
+++ lib/ChangeLog       10 Jul 2004 06:27:54 -0000
@@ -1,3 +1,7 @@
+2004-07-09  Paul Eggert  <address@hidden>
+
+       * fchown-stub.c: New file.
+
 2004-06-24  Jim Meyering  <address@hidden>
 
        * obstack.h (obstack_base): Cast to (void *), per documentation.
Index: modules/chown
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/chown,v
retrieving revision 1.4
diff -p -u -r1.4 chown
--- modules/chown       18 Apr 2004 18:12:50 -0000      1.4
+++ modules/chown       10 Jul 2004 06:27:54 -0000
@@ -3,6 +3,7 @@ chown() function: change ownership of a 
 
 Files:
 lib/chown.c
+lib/fchown-stub.c
 m4/chown.m4
 
 Depends-on:
--- /dev/null   2003-03-18 13:55:57 -0800
+++ lib/fchown-stub.c   2004-07-09 23:00:43 -0700
@@ -0,0 +1,15 @@
+#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;
+}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]