• J
    Fix safezero() · a64e3b3e
    Jiri Denemark 提交于
    Various safezero() implementations used either -1, errno or -errno
    return values. This patch fixes them all to return -1 and set errno
    appropriately.
    
    There was also a bug in size parameter passed to safewrite() which could
    result in an attempt to write gigabytes out of a megabyte buffer.
    Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
    a64e3b3e
util.c 66.2 KB