policycoreutils: Make restorecon return 0 when a file has changed context with no error

restorecon should return 0 when a file has changed context with no
error. With the last version it's returning 1.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662990

Signed-off-by: Laurent Bigonville <bigon@debian.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Russell Coker 2012-03-26 17:45:49 +02:00 committed by Eric Paris
parent 7e14d038c4
commit 30ef7451bc

View File

@ -248,7 +248,7 @@ static int restore(FTSENT *ftsent)
r_opts->progname, my_file, newcon, strerror(errno));
goto skip;
}
ret = 1;
ret = 0;
out:
freecon(curcon);
freecon(newcon);