From 764dced1f1bfd1d59d3af667283f217f75530b5f Mon Sep 17 00:00:00 2001 From: jpandre Date: Wed, 17 Oct 2007 12:20:22 +0000 Subject: [PATCH] Fixed errno when could not write to $SDS --- libntfs-3g/security.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index bd6fc0b1..91357684 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -837,9 +837,10 @@ static int entersecurity_data(ntfs_volume *vol, && (written2 == written1)) res = 0; else - errno = ENOMEM; + errno = ENOSPC; free(fullattr); - } + } else + errno = ENOMEM; return (res); }