[Top][All Lists]

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

[bug-gnulib] removed fts-lgpl dependency on unistd-safer

From: Paul Eggert
Subject: [bug-gnulib] removed fts-lgpl dependency on unistd-safer
Date: Sun, 22 May 2005 10:31:23 -0700

I installed this to remove an inadvertent dependency of fts-lgpl
on unistd-safer.

2005-05-22  Paul Eggert  <address@hidden>

        * fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
        so that unistd-safer.h (GPL'ed code) need not be included.

--- fts.c.~1.3.~        2005-05-20 15:42:42 -0700
+++ fts.c       2005-05-22 10:28:49 -0700
@@ -66,7 +66,6 @@ static char sccsid[] = "@(#)fts.c     8.6 (B
 #include <fcntl.h>
 #include <errno.h>
 #include "dirfd.h"
-#include "unistd-safer.h"
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
@@ -170,8 +169,10 @@ static bool enter_dir (FTS *fts, FTSENT 
 static void leave_dir (FTS *fts, FTSENT *ent) {}
 static bool setup_dir (FTS *fts) { return true; }
 static void free_dir (FTS *fts) {}
+static int fd_safer (int fd) { return fd; }
 # include "fts-cycle.c"
+# include "unistd-safer.h"
 #ifndef MAX

reply via email to

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