bug-idutils
[Top][All Lists]
Advanced

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

[bug-idutils] [patch #5165] Possible fix for when HAVE_LINK EQU 0


From: Claudio Fontana
Subject: [bug-idutils] [patch #5165] Possible fix for when HAVE_LINK EQU 0
Date: Fri, 9 Jun 2006 19:33:08 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

URL:
  <http://savannah.gnu.org/patch/?func=detailitem&item_id=5165>

                 Summary: Possible fix for when HAVE_LINK EQU 0
                 Project: idutils
            Submitted by: sick_soul
            Submitted on: Friday 06/09/2006 at 19:33
                Category: None
                Priority: 3 - Low
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

If we do not HAVE_LINK, we end up with an unresolved function at link time
with current (and historic) code.

This small change seems to make sense, but could you take a look at it?

CLaudio

--- walker.c    27 Dec 2005 04:24:57 -0000      1.13
+++ walker.c    9 Jun 2006 19:24:08 -0000
@@ -185,7 +185,13 @@
   flink->fl_flags = (old_flags & ~(FL_TYPE_MASK|FL_SYM_LINK)) | new_flags;
   if (FL_IS_DIR (new_flags))
     {
-      struct file_link *alias_link = find_alias_link (flink, &st);
+
+      struct file_link *alias_link;
+#if HAVE_LINK
+      alias_link = find_alias_link (flink, &st);
+#else
+      alias_link = 0;
+#endif /* HAVE_LINK */

       if (alias_link)
        {




    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
meyering                            | 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Friday 06/09/2006 at 19:33  Name: walker.c.HAVE_LINK.udiff  Size: 473B 
 By: sick_soul
fix for unresolved symbol when not HAVE_LINK
<http://savannah.gnu.org/patch/download.php?file_id=10150>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?func=detailitem&item_id=5165>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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