git: cryptsetup - Fix uuid bug, cleanup

Alex Hornung alexh at crater.dragonflybsd.org
Sun Aug 22 04:25:32 PDT 2010


commit 0482a033108a2b6e34ee99c470fd84d91119e291
Author: Alex Hornung <ahornung at gmail.com>
Date:   Sun Aug 22 12:16:23 2010 +0100

    cryptsetup - Fix uuid bug, cleanup
    
    * Clean up some useless debug and improve some other to be more
      meaningful.
    
    * Fix (another) bug in the uuid mess. Linux' uuid_unparse doesn't
      allocate any memory, unlike our uuid_to_string. Work around it by
      using a temporary buffer and then copying into the final destination.
      The compiler has been warning me about this one long enough...

Summary of changes:
 contrib/cryptsetup/lib/libdevmapper.c |    4 +---
 contrib/cryptsetup/lib/utils.c        |    3 +++
 contrib/cryptsetup/luks/keymanage.c   |    9 ++++++++-
 contrib/cryptsetup/luks/pbkdf.c       |    1 -
 4 files changed, 12 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0482a033108a2b6e34ee99c470fd84d91119e291


-- 
DragonFly BSD source repository





More information about the Commits mailing list