From: Daniel J Walsh <dwalsh@redhat.com>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: Small fixes for chcat in policycoreutils
Date: Tue, 03 Nov 2009 10:31:02 -0500 [thread overview]
Message-ID: <4AF04CB6.6020806@redhat.com> (raw)
[-- 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)
next reply other threads:[~2009-11-03 15:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 15:31 Daniel J Walsh [this message]
2009-11-27 18:03 ` Small fixes for chcat in policycoreutils Joshua Brindle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AF04CB6.6020806@redhat.com \
--to=dwalsh@redhat.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.