mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-10 06:37:29 +00:00
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:
parent
7e14d038c4
commit
30ef7451bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user