All of lore.kernel.org
 help / color / mirror / Atom feed
* Small fixes for chcat in policycoreutils
@ 2009-11-03 15:31 Daniel J Walsh
  2009-11-27 18:03 ` Joshua Brindle
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel J Walsh @ 2009-11-03 15:31 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 85 bytes --]

chcat can generate oserror exception so need to catch and add chcat to the Makefile.

[-- Attachment #2: policoreutils-chcat.patch --]
[-- Type: text/plain, Size: 773 bytes --]

diff --git a/policycoreutils/scripts/Makefile b/policycoreutils/scripts/Makefile
index d6d9069..53b65b6 100644
--- a/policycoreutils/scripts/Makefile
+++ b/policycoreutils/scripts/Makefile
@@ -5,7 +5,7 @@ SBINDIR ?= $(PREFIX)/sbin
 MANDIR ?= $(PREFIX)/share/man
 LOCALEDIR ?= /usr/share/locale
 
-all: fixfiles genhomedircon
+all: fixfiles genhomedircon chcat
 
 install: all
 	-mkdir -p $(BINDIR)
diff --git a/policycoreutils/scripts/chcat b/policycoreutils/scripts/chcat
index 235ad82..4038a99 100755
--- a/policycoreutils/scripts/chcat
+++ b/policycoreutils/scripts/chcat
@@ -435,6 +435,8 @@ if __name__ == '__main__':
                     continue
     except ValueError, e:
         error(e)
+    except OSError, e:
+        error(e)
     
     sys.exit(errors)
     

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-27 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 15:31 Small fixes for chcat in policycoreutils Daniel J Walsh
2009-11-27 18:03 ` Joshua Brindle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.