The following commit has been merged in the master branch:
commit 6c481e19a532080643e3cf5c76760df8009ea2c7
Author: Guillem Jover <[email protected]>
Date:   Thu Sep 8 10:10:06 2011 +0200

    u-a: Use xreadlink() instead of areadlink() in alternative_evolve()
    
    The function does not expect the readlink call to fail.

diff --git a/utils/update-alternatives.c b/utils/update-alternatives.c
index 44a3114..b8654fa 100644
--- a/utils/update-alternatives.c
+++ b/utils/update-alternatives.c
@@ -2075,7 +2075,7 @@ alternative_evolve(struct alternative *a, struct 
alternative *b,
                        char *lnk;
 
                        xasprintf(&lnk, "%s/%s", altdir, sl->name);
-                       new_file = areadlink(lnk);
+                       new_file = xreadlink(lnk);
                        free(lnk);
                }
                if (strcmp(old, new) != 0 && lstat(old, &st) == 0 &&

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to