[PATCH 70/90] Fix restorecon to return errors when bad paths are

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


   This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/I+yQACgkQrlYvE4MpobNZ3QCeLvgI4rxT1IZMg34LoIK+xocj
B0wAn2ViHmI8qVYbRw7pIze1qXwUo1H9
=OJ+3
-----END PGP SIGNATURE-----
>From 9bdec117fcbc9171b8b30b296d55f0cefb700a08 Mon Sep 17 00:00:00 2001
From: Dan Walsh <dwalsh@xxxxxxxxxx>
Date: Thu, 24 May 2012 11:38:34 -0400
Subject: [PATCH 70/90] Fix restorecon to return errors when bad paths are
 given to it

---
 policycoreutils/setfiles/restore.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/policycoreutils/setfiles/restore.c b/policycoreutils/setfiles/restore.c
index 1b59e2f..1d0c354 100644
--- a/policycoreutils/setfiles/restore.c
+++ b/policycoreutils/setfiles/restore.c
@@ -433,10 +433,7 @@ int process_glob(char *name, int recurse) {
 	size_t i = 0;
 	int errors;
 	memset(&globbuf, 0, sizeof(globbuf));
-	errors = glob(name, GLOB_TILDE | GLOB_PERIOD, NULL, &globbuf);
-	if (errors == GLOB_NOMATCH)
-		return 0;
-
+	errors = glob(name, GLOB_TILDE | GLOB_PERIOD | GLOB_NOCHECK, NULL, &globbuf);
 	if (errors) 
 		return errors;
 
-- 
1.7.10.2


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux